aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-29 13:54:26 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:00 +0100
commitdb33afcad5c59877ebdcf7ed7302358f4a1440ab (patch)
tree5ffec6217078cf92b06d35038ad579e914ccad29 /src/cell.c
parent24f12798b7a280a40c77a11013c981a23e9502a0 (diff)
Don't free cell if it's NULL
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);
}