mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-21 00:51:07 +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
|
||||
branch of argument selection
|
||||
|
||||
* 40524: Src/Modules/example.c: do not free a null array
|
||||
|
||||
2017-02-13 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 40537: Doc/Zsh/builtins.yo: document the foregoing.
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ bin_example(char *nam, char **args, Options ops, UNUSED(int func))
|
|||
intparam = i;
|
||||
zsfree(strparam);
|
||||
strparam = ztrdup(*oargs ? *oargs : "");
|
||||
if (arrparam)
|
||||
freearray(arrparam);
|
||||
arrparam = zarrdup(oargs);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue