From 2fb452e37525d9d75b78d8bd47e2e2116f6c3e12 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 19 Jan 2010 10:27:09 +0100 Subject: Zap more memory leaks --- src/indexamajig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/indexamajig.c') 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); -- cgit v1.2.3