As a side note, when I think of GC, I think of variables/objects tracked via reference counts, where their memory is free'd automatically by perl when their reference counts reach zero (usually from being destroyed or going out of scope). In your case, you are defining a function, not a variable, and are explicitly free()ing the buffer yourself when its no longer needed, so this isn't really garbage collection.
In reply to Re: Perl XS: garbage-collecting my malloc'd buffer
by meetraz
in thread Perl XS: garbage-collecting my malloc'd buffer
by edan
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |