diff --git a/osdep/io.c b/osdep/io.c index cee5acd605..260a998bad 100644 --- a/osdep/io.c +++ b/osdep/io.c @@ -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);