Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-11-24 18:04:42 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-11-24 18:04:42 +0300
commit584c6643fea45b83a1ef258d9ab1c2ec491b3387 (patch)
treea177c8321863866bd954e6913956b083eef372a5
parent9b01c29c0435e6cd52412cf59295b19921feeb61 (diff)
cygutils: Fix resource leak in get_short_paths
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/utils/cygpath.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc
index 6ab98cd4d..ccae98f77 100644
--- a/winsup/utils/cygpath.cc
+++ b/winsup/utils/cygpath.cc
@@ -414,6 +414,7 @@ get_short_paths (char *path)
exit (1);
}
my_wcstombs (ptr, sbuf, len);
+ free (sbuf);
return ptr;
}