glob.c, brac1(), fix a memory leak

This commit is contained in:
h_vogt 2016-03-30 20:10:46 +02:00 committed by rlar
parent 841f2846fe
commit 0443a2690c
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ brac1(char *string)
newwl = wl_append(newwl, nw);
}
wl_free(words);
wl_free(nwl);
words = newwl;
} else {
for (wl = words; wl; wl = wl->wl_next)