summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}