From da62ca9ec060334616e0e99d4c927258fc4cf5b2 Mon Sep 17 00:00:00 2001 From: Takanori Nakane Date: Tue, 2 Dec 2014 14:47:37 +0900 Subject: Fix huge memory leak in hdfsee when re-loading events. Probably we need image_free(). --- libcrystfel/src/hdf5-file.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 5eb8e768..fceff0e7 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -1188,6 +1188,8 @@ int hdf5_read2(struct hdfile *f, struct image *image, struct event *ev, ERROR("Error selecting memory dataspace for panel %s\n", p->name); free(buf); + free(f_offset); + free(f_count); return 1; } @@ -1197,6 +1199,8 @@ int hdf5_read2(struct hdfile *f, struct image *image, struct event *ev, ERROR("Couldn't read data for panel %s\n", p->name); free(buf); + free(f_offset); + free(f_count); return 1; } H5Dclose(f->dh); -- cgit v1.2.3