aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-12-04 11:45:10 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:08 +0100
commita7e6e69d2da41b559cd9359066a0e3b167fdc98d (patch)
treec6b6c26a9d4e5fdcc6f24147b94b7cd1d23b6133 /src
parent58e5231f4d10ce5002ba8e73c9ad8549fb807883 (diff)
Tidy up and fix memory leak
Diffstat (limited to 'src')
-rw-r--r--src/symmetry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/symmetry.c b/src/symmetry.c
index 33eb7b86..dc0d2e86 100644
--- a/src/symmetry.c
+++ b/src/symmetry.c
@@ -631,11 +631,13 @@ int check_symmetry(ReflItemList *items, const char *sym)
}
if ( found > 1 ) {
- STATUS("%i found for %i %i %i\n", found, it->h, it->k, it->l);
+ free(flags);
return 1; /* Symmetry is wrong! */
}
}
+ free(flags);
+
return 0;
}