Do not error out when calling xfree(NULL)

Calling free() with NULL as parameter is perfectly safe, no need to
error out here.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-07-27 10:55:59 +02:00
parent 3fe9942017
commit d6eee30215

View File

@ -121,7 +121,6 @@ char *xstrdup(const char *str)
void xfree(void *p)
{
EXIT_IF(p == NULL, _("xfree: null pointer"));
free(p);
}