diff options
author | Thomas White <taw@physics.org> | 2020-09-16 14:36:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-16 14:36:32 +0200 |
commit | 16097786b720a68ab1fe805f30b9049a2977ae9f (patch) | |
tree | bedf86500470e9f27357f00c18314b700947a691 | |
parent | 8fbb6c4173531734ca287681f86fe8b3c673cdd4 (diff) |
image_hdf5_read: Don't call image_free
You didn't allocate it, so you don't free it.
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 2 |
1 files changed, 0 insertions, 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; } } |