diff options
author | Thomas White <taw@physics.org> | 2010-01-19 10:27:09 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-01-19 10:27:09 +0100 |
commit | 2fb452e37525d9d75b78d8bd47e2e2116f6c3e12 (patch) | |
tree | 4b1189d45f88c9db7f2460c1180c5b016d69cb59 /src/indexamajig.c | |
parent | 825114565b26383f5de4d3e6aa384fd5192a8bf0 (diff) |
Zap more memory leaks
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 9a5fa667..4287d473 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -148,7 +148,7 @@ int main(int argc, char *argv[]) index_pattern(&image, config_noindex, config_dumpfound, config_dirax); - if ( image.molecule == NULL ) continue; + if ( image.molecule == NULL ) goto done; /* View head-on (unit cell is tilted) */ image.orientation.w = 1.0; @@ -164,6 +164,7 @@ int main(int argc, char *argv[]) } +done: free(image.data); hdfile_close(hdfile); |