diff options
author | Thomas White <taw@physics.org> | 2010-09-29 13:54:26 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:00 +0100 |
commit | db33afcad5c59877ebdcf7ed7302358f4a1440ab (patch) | |
tree | 5ffec6217078cf92b06d35038ad579e914ccad29 /src/cell.c | |
parent | 24f12798b7a280a40c77a11013c981a23e9502a0 (diff) |
Don't free cell if it's NULL
Diffstat (limited to 'src/cell.c')
-rw-r--r-- | src/cell.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -88,6 +88,7 @@ UnitCell *cell_new() void cell_free(UnitCell *cell) { + if ( cell == NULL ) return; free(cell->pointgroup); free(cell); } |