X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0024.html-inc;h=5c755eff3587d53a5df2823aafd86c864fa56f39;hb=c8ad4fe9f211e727310a1ce6d23ffb1d7822d71f;hp=07f93572e8222cb208caab774a8da5e5cca131dd;hpb=50ebf4949c9eed8f2d3fb629f12d11e95ec4e938;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0024.html-inc b/pages/blog-0024.html-inc index 07f9357..5c755ef 100644 --- a/pages/blog-0024.html-inc +++ b/pages/blog-0024.html-inc @@ -1,6 +1,19 @@

-Catching memory leaks in XS +Development Update

-
 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 +
Short and Sweet
+

+Had an exam on the weekend so I am a bit late. Here is the progress so far.
+
+SDL Smoke tests
+
+The major release maybe coming quicker than we thought. FROGGS++ for helping a lot out on this. However we need more testers!! Please contact us on #sdl and we will set you up with an account on Smolder.
+
+[Edit] Please read http://sdlperl.ath.cx/projects/SDLPerl/wiki/Testing on how to get started in test!
+


+

\ No newline at end of file