From 825114565b26383f5de4d3e6aa384fd5192a8bf0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 18 Jan 2010 18:02:21 +0100 Subject: Fix lots of memory leaks --- src/indexamajig.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/indexamajig.c') diff --git a/src/indexamajig.c b/src/indexamajig.c index 734345e7..9a5fa667 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "utils.h" #include "hdf5-file.h" @@ -124,6 +125,7 @@ int main(int argc, char *argv[]) image.features = NULL; image.molecule = NULL; + image.data = NULL; STATUS("Processing '%s'\n", line); @@ -162,6 +164,9 @@ int main(int argc, char *argv[]) } + free(image.data); + hdfile_close(hdfile); + } while ( rval != NULL ); fclose(fh); -- cgit v1.2.3