X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0020.html-inc;h=93751a19ef59c19200fd8181628da77499d76814;hb=567ab1bdb9b4c68e8fc520cddcfd646f5913042a;hp=ce0a8db57d793510beade695b776bd03ce31afa9;hpb=ec946b6b14ea9423892698e8edfac4664f979b3c;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0020.html-inc b/pages/blog-0020.html-inc index ce0a8db..93751a1 100644 --- a/pages/blog-0020.html-inc +++ b/pages/blog-0020.html-inc @@ -1,6 +1,6 @@

-Catching memory leaks in XS +Code is not the only thing

-
 I slay dragons, yonder

So I am trying to find and plug memory leaks in SDL perl. Most of the memory leaks occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on here. The problem occurs where in XS there is

RETVAL = (cast *) safemalloc( ... );
 and safefree(...) is never called.
Here is a in code example lines 1082 on.

My question is how I can mitigate these memory leaks? One idea I had was to store all malloc'd pointers to an array that is safefree'd on DESTROY or hooked into perl GC somehow .


Any guidance is helpful.

--yapgh
\ No newline at end of file +

I did,
no one cared,
I spoke,
no one heard,
I wrote,
someone read.


After only several weeks of maintaining SDL perl, Today I have come to noticed how important it is to update README's, docs and so on. I will redouble my effort to do this.


However I am not sure where to start updating docs. Has anyone re-documented old modules before? Any advice? If anyone is interested in helping me to sort out documentation please contact me on sdl-devel@perl.org. For people wanting to learn the SDL base there is no better way.

\ No newline at end of file