Commit 30ec3665 authored by Thomas White's avatar Thomas White
Browse files

Tidy up memory leaks

parent a22d0dc8
......@@ -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);
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment