aboutsummaryrefslogtreecommitdiff
path: root/src/templates.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-08 13:46:27 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:57 +0100
commita3d91adadd8b0784f9c8e6603e7e1e440de7a66f (patch)
tree671ab72b02ee247b7548f8fb715e734b81e5169e /src/templates.c
parentc81d04eb776260f4499f3f3824bc5d02e42ef58c (diff)
Fix a couple of memory leaks
Diffstat (limited to 'src/templates.c')
-rw-r--r--src/templates.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/templates.c b/src/templates.c
index 765d4324..55983a61 100644
--- a/src/templates.c
+++ b/src/templates.c
@@ -195,6 +195,9 @@ IndexingPrivate *generate_templates(UnitCell *cell, const char *filename,
priv->n_templates = n_templates;
priv->cell = cell_new_from_cell(cell);
+ free(image.data);
+ free(image.flags);
+
return (struct _indexingprivate *)priv;
}