cygutils: Fix resource leak in get_short_paths

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-11-24 16:04:42 +01:00
parent 9b01c29c04
commit 584c6643fe
1 changed files with 1 additions and 0 deletions

View File

@ -414,6 +414,7 @@ get_short_paths (char *path)
exit (1);
}
my_wcstombs (ptr, sbuf, len);
free (sbuf);
return ptr;
}