diff options
author | Takanori Nakane <nakane.t@gmail.com> | 2014-12-02 14:47:37 +0900 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-12-02 15:40:50 +0100 |
commit | da62ca9ec060334616e0e99d4c927258fc4cf5b2 (patch) | |
tree | bacb063420e3c4e67cc66bb0294fe6762fbc3440 /libcrystfel/src/hdf5-file.c | |
parent | 45da3ff62029e2416afb8e46e846c7ae910f0147 (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.c | 4 |
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); |