From 584c6643fea45b83a1ef258d9ab1c2ec491b3387 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 24 Nov 2016 16:04:42 +0100 Subject: [PATCH] cygutils: Fix resource leak in get_short_paths Signed-off-by: Corinna Vinschen --- winsup/utils/cygpath.cc | 1 + 1 file changed, 1 insertion(+) 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; }