summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-27 10:55:59 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-27 10:58:03 +0200
commitd6eee302151c0316fddc100b9f1c02021f836fcb (patch)
tree8f28220de691e163e4051320128f88fbd251d3c6 /src
parent3fe99420177809180ccd3d6cf117b37fe8d6f9bc (diff)
downloadcalcurse-d6eee302151c0316fddc100b9f1c02021f836fcb.tar.gz
calcurse-d6eee302151c0316fddc100b9f1c02021f836fcb.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/mem.c1
1 files changed, 0 insertions, 1 deletions
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);
}