From 30ec3665f1b79b314aecbe3a8f5afbfcf3adfa99 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 11 Oct 2010 14:47:59 +0200 Subject: Tidy up memory leaks --- src/index.c | 2 ++ src/indexamajig.c | 1 + 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/index.c b/src/index.c index c01412ed..97cf3887 100644 --- a/src/index.c +++ b/src/index.c @@ -60,8 +60,10 @@ void cleanup_indexing(IndexingPrivate *priv) { switch ( priv->indm ) { case INDEXING_NONE : + free(priv); break; case INDEXING_DIRAX : + free(priv); break; case INDEXING_TEMPLATE : free_templates(priv); diff --git a/src/indexamajig.c b/src/indexamajig.c index 4af459bc..5176c9cf 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -664,6 +664,7 @@ int main(int argc, char *argv[]) ERROR("Unrecognised peak detection method '%s'\n", speaks); return 1; } + free(speaks); if ( intfile != NULL ) { ReflItemList *items; -- cgit v1.2.3