Fix Bug #402 "Crash related to aliases". Do not return freed pointer.
This commit is contained in:
parent
2aa950fe9c
commit
724cf4e638
|
|
@ -97,8 +97,8 @@ cp_doalias(wordlist *wlist)
|
|||
|
||||
if (!ntries) {
|
||||
fprintf(cp_err, "Error: alias loop.\n");
|
||||
wlist->wl_word = NULL;
|
||||
return (wlist);
|
||||
wl_free(comm);
|
||||
return wl_cons(NULL, NULL);
|
||||
}
|
||||
|
||||
wl_append(end, comm);
|
||||
|
|
|
|||
Loading…
Reference in New Issue