remove memory leak in function parser (bug. no 478),
second case
This commit is contained in:
parent
efb036ef68
commit
b598bba6e5
|
|
@ -307,6 +307,7 @@ struct pnode *PP_mkfnode(const char *func, struct pnode *arg)
|
||||||
/* Give the user-defined functions a try. */
|
/* Give the user-defined functions a try. */
|
||||||
q = ft_substdef(func, arg);
|
q = ft_substdef(func, arg);
|
||||||
if (q) { /* found */
|
if (q) { /* found */
|
||||||
|
free_pnode(arg);
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue