mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-15 23:11:26 +01:00
40524: do not free a null array
This commit is contained in:
parent
e720f45975
commit
63f086d167
2 changed files with 4 additions and 1 deletions
|
|
@ -3,6 +3,8 @@
|
||||||
* 40539: Fabian Klotzl: Completion/Unix/Command/_gcc: typo in MIPS
|
* 40539: Fabian Klotzl: Completion/Unix/Command/_gcc: typo in MIPS
|
||||||
branch of argument selection
|
branch of argument selection
|
||||||
|
|
||||||
|
* 40524: Src/Modules/example.c: do not free a null array
|
||||||
|
|
||||||
2017-02-13 Peter Stephenson <p.stephenson@samsung.com>
|
2017-02-13 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
* 40537: Doc/Zsh/builtins.yo: document the foregoing.
|
* 40537: Doc/Zsh/builtins.yo: document the foregoing.
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,8 @@ bin_example(char *nam, char **args, Options ops, UNUSED(int func))
|
||||||
intparam = i;
|
intparam = i;
|
||||||
zsfree(strparam);
|
zsfree(strparam);
|
||||||
strparam = ztrdup(*oargs ? *oargs : "");
|
strparam = ztrdup(*oargs ? *oargs : "");
|
||||||
freearray(arrparam);
|
if (arrparam)
|
||||||
|
freearray(arrparam);
|
||||||
arrparam = zarrdup(oargs);
|
arrparam = zarrdup(oargs);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue