summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 58114977d..6412a8a11 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -3653,6 +3653,10 @@ conv_path_list_buf_size (const char *path_list, bool to_posix)
+ (num_elms * max_mount_path_len)
+ (nrel * strlen (to_posix ? pc.normalized_path : pc.get_win32 ()))
+ 100;
+
+ cfree (pc.normalized_path); // FIXME - probably should be in a destructor but
+ // it's hard to justify a destructor for the few
+ // places where this is needed
return size;
}