win32: fix mismatched free/talloc_free

Might fix #4315.
This commit is contained in:
wm4 2017-04-12 14:12:26 +02:00
parent 7497b633e9
commit dc5dfa5c92
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ char *mp_win32_getcwd(char *buf, size_t size)
return NULL;
}
char *t = mp_to_utf8(NULL, wres);
free(wres);
talloc_free(wres);
size_t st = strlen(t);
if (st >= size) {
talloc_free(t);