|
![](/i/fill.gif) |
Thorsten Froehlich <tho### [at] trf de> wrote:
: POV-Ray has build-in memory management. Depending of compile-time settings
: it can either just keep track of all allocated memory and free it at the end
: of a render (i.e. after the last frame of an animation has been rendered),
: or even create a log file of all not freed blocks of memory, together with
: the line in which they were allocated. There are some more options, but
: just look for yourself in mem.c/pov_mem.cpp. Usually this is a big help in
: finding leaks.
Yes, that kind of "self-made" memory management is of big help, of course.
What I wonder is that if that library can report unfreed memory at the
end of the program, why there are memory leaks in povray?
Btw, not freeing allocated memory in the right place but letting the
library to do it is usually a sign of a bug.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |