aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-11 14:47:59 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:02 +0100
commit30ec3665f1b79b314aecbe3a8f5afbfcf3adfa99 (patch)
treef1028531eeaacf895405dea2ca336e215dcc08c8 /src
parenta22d0dc84c4411ca1b4583ac7857d5301c690f7c (diff)
Tidy up memory leaks
Diffstat (limited to 'src')
-rw-r--r--src/index.c2
-rw-r--r--src/indexamajig.c1
2 files changed, 3 insertions, 0 deletions
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;