aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-07-19 07:44:58 +0000
committerFrederic Culot <calcurse@culot.org>2009-07-19 07:44:58 +0000
commita4da35c65f77113f998cd60d8a1a10d108138951 (patch)
treed5cd2d7542d1bd06f7982e6914706451540c4eef /src
parenta93d88c370bde6eacef40e65b21efb5eae353b5a (diff)
downloadcalcurse-a4da35c65f77113f998cd60d8a1a10d108138951.tar.gz
calcurse-a4da35c65f77113f998cd60d8a1a10d108138951.zip
No need to double check for null pointer when freeing memory.
Diffstat (limited to 'src')
-rw-r--r--src/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem.c b/src/mem.c
index d37d472..7939e2b 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -1,4 +1,4 @@
-/* $calcurse: mem.c,v 1.5 2009/07/12 17:48:13 culot Exp $ */
+/* $calcurse: mem.c,v 1.6 2009/07/19 07:44:59 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -281,7 +281,7 @@ dbg_free (void *ptr, const char *pos)
stats_del_blk (buf[BLK_ID]);
- xfree (buf);
+ free (buf);
mstats.nfree += size;
}