diff options
-rw-r--r-- | libcrystfel/src/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 63c9ba93..c84b3a05 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -154,8 +154,8 @@ ImageFeatureList *sort_peaks(ImageFeatureList *flist) void image_feature_list_free(ImageFeatureList *flist) { - if ( !flist ) return; - if ( flist->features ) free(flist->features); + if ( flist == NULL ) return; + free(flist->features); free(flist); } |