diff options
Diffstat (limited to 'src/templates.c')
-rw-r--r-- | src/templates.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/templates.c b/src/templates.c index 55983a61..468612f2 100644 --- a/src/templates.c +++ b/src/templates.c @@ -362,9 +362,15 @@ void match_templates(struct image *image, IndexingPrivate *ipriv) void free_templates(IndexingPrivate *priv) { + int i; struct _indexingprivate_template *tpriv = (struct _indexingprivate_template *)priv; + for ( i=0; i<tpriv->n_templates; i++ ) { + free(tpriv->templates[i].spots); + } + free(tpriv->templates); + cell_free(tpriv->cell); free(tpriv); } |