1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-12 10:00:56 +01: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

@ -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);
}
/**/