From a3d91adadd8b0784f9c8e6603e7e1e440de7a66f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 8 Sep 2010 13:46:27 +0200 Subject: Fix a couple of memory leaks --- src/templates.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3