From db33afcad5c59877ebdcf7ed7302358f4a1440ab Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 29 Sep 2010 13:54:26 +0200 Subject: Don't free cell if it's NULL --- src/cell.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cell.c') diff --git a/src/cell.c b/src/cell.c index 757ce649..78fc76e1 100644 --- a/src/cell.c +++ b/src/cell.c @@ -88,6 +88,7 @@ UnitCell *cell_new() void cell_free(UnitCell *cell) { + if ( cell == NULL ) return; free(cell->pointgroup); free(cell); } -- cgit v1.2.3