summaryrefslogtreecommitdiff
path: root/src/ufo-filter-particle-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ufo-filter-particle-task.c')
-rw-r--r--src/ufo-filter-particle-task.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ufo-filter-particle-task.c b/src/ufo-filter-particle-task.c
index e054fc5..0964b41 100644
--- a/src/ufo-filter-particle-task.c
+++ b/src/ufo-filter-particle-task.c
@@ -352,7 +352,7 @@ pfind (float *input, unsigned *out, unsigned nc, unsigned nr, unsigned *pcount,
/* dupindex gives the new index for each index, when two index are duplicates
* dupindex will affect those two indexes a same value */
for(k=0;k<ndup;k++) {
- k1=dupx[k]; k2=dupy[k];
+ k1=dupx[k];
for(j=k;j<ndup;j++) {
if(dupy[j]== dupy[k]||dupx[j]== dupy[k]) {
dupindex[ dupx[j] ]=dupindex[k1];
@@ -498,6 +498,10 @@ ufo_filter_particle_task_process (UfoTask *task,
res[i].intensity = input[y * req.dims[0] + x];
}
+ free (cx);
+ free (cy);
+ free (rr);
+
return TRUE;
}