From 16097786b720a68ab1fe805f30b9049a2977ae9f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 16 Sep 2020 14:36:32 +0200 Subject: image_hdf5_read: Don't call image_free You didn't allocate it, so you don't free it. --- libcrystfel/src/image-hdf5.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index 87c68bb4..ab80f8e5 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -539,7 +539,6 @@ int image_hdf5_read(struct image *image, image->dp = malloc(dtempl->n_panels*sizeof(float *)); if ( image->dp == NULL ) { ERROR("Failed to allocate data array.\n"); - image_free(image); return 1; } @@ -558,7 +557,6 @@ int image_hdf5_read(struct image *image, dtempl->panels[i].data) ) { ERROR("Failed to load panel data\n"); - image_free(image); return 1; } } -- cgit v1.2.3