diff options
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); |