projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2f8d07
)
nearest_color filter: was leaking malloc()ed buffers
author
Tony Cook
<tony@develop-help.com>
Tue, 23 Feb 2016 10:57:54 +0000
(21:57 +1100)
committer
Tony Cook
<tony@develop-help.com>
Tue, 23 Feb 2016 10:57:54 +0000
(21:57 +1100)
filters.im
patch
|
blob
|
blame
|
history
diff --git
a/filters.im
b/filters.im
index ee4f5d8affc6d3edd78240d0828fb25357dc01cc..e247c9ccc4c64df20ef37251655eac3f59d00e13 100644
(file)
--- a/
filters.im
+++ b/
filters.im
@@
-1333,6
+1333,10
@@
i_nearest_color(i_img *im, int num, i_img_dim *xo, i_img_dim *yo, i_color *oval,
i_nearest_color_foo(im, num, xo, yo, ival, dmeasure);
+ myfree(cmatch);
+ myfree(ival);
+ myfree(tval);
+
return 1;
}