1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

42411: Assume current C librarires handle free(NULL)

This commit is contained in:
Taylor West 2018-03-01 01:15:37 +00:00 committed by Peter Stephenson
parent 1d6954bd2f
commit 14c17aa178
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2018-03-04 Peter Stephenson <p.w.stephenson@ntlworld.com>
* Taylor West: 42411: Src/mem.c: assume any current C compiler
will handle NULL argument to free.
2018-02-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 23180: Src/Zle/zle_tricky.c: Square brackets in dynamic

View file

@ -1885,16 +1885,14 @@ bin_mem(char *name, char **argv, Options ops, int func)
mod_export void
zfree(void *p, UNUSED(int sz))
{
if (p)
free(p);
free(p);
}
/**/
mod_export void
zsfree(char *p)
{
if (p)
free(p);
free(p);
}
/**/