diff options
Diffstat (limited to 'libcrystfel/src/events.c')
-rw-r--r-- | libcrystfel/src/events.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 6e52f6cd..19d69b81 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -238,12 +238,13 @@ void free_event_list(struct event_list *el) void free_filename_plus_event(struct filename_plus_event *fpe) { - free(fpe->filename); if ( fpe->ev != NULL ) { free_event(fpe->ev); } + + free(fpe); } @@ -622,12 +623,8 @@ struct dim_structure *default_dim_structure() void free_dim_structure(struct dim_structure *hsd) { - int di; - - for ( di=0; di<hsd->num_dims; di++ ) { - free (hsd->dims); - free (hsd); - } + free(hsd->dims); + free(hsd); } |