From d6eee302151c0316fddc100b9f1c02021f836fcb Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <calcurse@cryptocrack.de>
Date: Sun, 27 Jul 2014 10:55:59 +0200
Subject: 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>
---
 src/mem.c | 1 -
 1 file changed, 1 deletion(-)

(limited to 'src')

diff --git a/src/mem.c b/src/mem.c
index a351818..f03a003 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -121,7 +121,6 @@ char *xstrdup(const char *str)
 
 void xfree(void *p)
 {
-	EXIT_IF(p == NULL, _("xfree: null pointer"));
 	free(p);
 }
 
-- 
cgit v1.2.3-70-g09d2