No need to double check for null pointer when freeing memory.
This commit is contained in:
parent
a93d88c370
commit
a4da35c65f
@ -1,3 +1,8 @@
|
|||||||
|
2009-07-19 Frederic Culot <frederic@culot.org>
|
||||||
|
|
||||||
|
* src/mem.c (dbg_free): no need to double check for null pointer
|
||||||
|
when freeing memory
|
||||||
|
|
||||||
2009-07-15 Frederic Culot <frederic@culot.org>
|
2009-07-15 Frederic Culot <frederic@culot.org>
|
||||||
|
|
||||||
* src/io.c: could not import ical files anymore if notes were not
|
* src/io.c: could not import ical files anymore if notes were not
|
||||||
|
@ -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
|
* Calcurse - text-based organizer
|
||||||
@ -281,7 +281,7 @@ dbg_free (void *ptr, const char *pos)
|
|||||||
|
|
||||||
stats_del_blk (buf[BLK_ID]);
|
stats_del_blk (buf[BLK_ID]);
|
||||||
|
|
||||||
xfree (buf);
|
free (buf);
|
||||||
mstats.nfree += size;
|
mstats.nfree += size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user