aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c1
1 files changed, 1 insertions, 0 deletions
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);
}