1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

32932: add hmkarray() and use to fix leak

This commit is contained in:
Peter Stephenson 2014-08-01 16:15:13 +01:00
parent 417cb94fe1
commit b79ef8caaf
3 changed files with 17 additions and 1 deletions

View file

@ -2935,7 +2935,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags)
*/
if (!vunset) {
if (isarr) {
aval = mkarray(NULL);
aval = hmkarray(NULL);
} else {
val = dupstring("");
}