diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/indexamajig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 549fc2db..953fd81d 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -220,6 +220,7 @@ static void process_image(void *pp, int cookie) image.features = NULL; image.data = NULL; + image.flags = NULL; image.indexed_cell = NULL; image.id = cookie; image.filename = filename; @@ -346,7 +347,7 @@ static void process_image(void *pp, int cookie) cell_free(image.indexed_cell); free(image.data); - free(image.flags); + if ( image.flags != NULL ) free(image.flags); image_feature_list_free(image.features); hdfile_close(hdfile); free_detector_geometry(image.det); |