dmitriy kuvshinov wrote:
hi all!
I have written the XS-module, which processes the certain type of a
picture (this is a simple image filter, like Gaussian blur in Gimp or
Photoshop). But for the unknown reason the size of the memory used for
this module, grows in memory of a computer at his cyclic use. What I
incorrectly do?
XS-file (created by command "h2xs -A -n Smai"):
http://genphys.phys.msu.ru/~dmitriyk/Smai.xs
I think you simply need:
for(i = 0; i < h; ++i) free(ym[i]);
for(i = 0; i < h; ++i) free(sym[i]);
// then:
free(ym);
free(sym);
Cheers,
Rob