diff options
Diffstat (limited to 'libcrystfel/src/detgeom.c')
-rw-r--r-- | libcrystfel/src/detgeom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/detgeom.c b/libcrystfel/src/detgeom.c index 122dcd87..58e52f01 100644 --- a/libcrystfel/src/detgeom.c +++ b/libcrystfel/src/detgeom.c @@ -65,6 +65,8 @@ void detgeom_free(struct detgeom *detgeom) { int i; + if ( detgeom == NULL ) return; + for ( i=0; i<detgeom->n_panels; i++ ) { free(detgeom->panels[i].name); } |