Imported from ../bash-2.01.tar.gz.
diff --git a/pathexp.c b/pathexp.c
index 6404514..138f9d6 100644
--- a/pathexp.c
+++ b/pathexp.c
@@ -285,6 +285,7 @@
   for (n = 0; newnames[n]; n++)
     names[n] = newnames[n];
   names[n] = (char *)NULL;
+  free (newnames);
 }
 
 void