From a4da35c65f77113f998cd60d8a1a10d108138951 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 19 Jul 2009 07:44:58 +0000 Subject: No need to double check for null pointer when freeing memory. --- src/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2