From 3a69282b3ac098e4f1815bff824c66e450eaf0c1 Mon Sep 17 00:00:00 2001 From: sjborley Date: Tue, 6 Sep 2005 20:24:47 +0000 Subject: [PATCH] Fixed memory leak in tilde expansion --- src/frontend/parser/glob.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/parser/glob.c b/src/frontend/parser/glob.c index 9c366bf47..de27adec0 100644 --- a/src/frontend/parser/glob.c +++ b/src/frontend/parser/glob.c @@ -56,6 +56,7 @@ cp_doglob(wordlist *wlist) for (wl = wlist; wl; wl = wl->wl_next) if (*wl->wl_word == cp_til) { s = cp_tildexpand(wl->wl_word); + txfree(wl->wl_word); /* sjb - fix memory leak */ if (!s) *wl->wl_word = '\0'; /* MW. We Con't touch tmalloc addres */ else