aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
authorTakanori Nakane <nakane.t@gmail.com>2014-12-02 14:47:37 +0900
committerThomas White <taw@physics.org>2014-12-02 15:40:50 +0100
commitda62ca9ec060334616e0e99d4c927258fc4cf5b2 (patch)
treebacb063420e3c4e67cc66bb0294fe6762fbc3440 /libcrystfel/src/hdf5-file.c
parent45da3ff62029e2416afb8e46e846c7ae910f0147 (diff)
Fix huge memory leak in hdfsee when re-loading events.
Probably we need image_free().
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r--libcrystfel/src/hdf5-file.c4
1 files changed, 4 insertions, 0 deletions
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);