diff options
author | Thomas White <taw@physics.org> | 2010-01-18 18:02:21 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-01-18 18:02:21 +0100 |
commit | 825114565b26383f5de4d3e6aa384fd5192a8bf0 (patch) | |
tree | e3d7ca5c6334bb55d2fdc70ba38d897dd9a09445 /src/indexamajig.c | |
parent | 132855ee98add703d220df30333b690809bf2b94 (diff) |
Fix lots of memory leaks
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <string.h> #include <unistd.h> #include <getopt.h> +#include <hdf5.h> #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); |