From a7e6e69d2da41b559cd9359066a0e3b167fdc98d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 4 Dec 2010 11:45:10 +0100 Subject: Tidy up and fix memory leak --- src/symmetry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3