Fix some memory leaks, found with valgrind.

This commit is contained in:
Paul Smith
2009-09-26 23:01:55 +00:00
parent 48045f99e5
commit 44ac2cdb4d
3 changed files with 23 additions and 5 deletions

View File

@@ -382,6 +382,7 @@ string_glob (char *line)
idx += len;
result[idx++] = ' ';
free (chain->name);
free (chain);
chain = next;
}