The stupid question is the question not asked | |
PerlMonks |
Re^8: perlembed: mortalize an AV, get "Attempt to free unreferenced scalar" - don't mortalize, leaks memoryby edan (Curate) |
on Jul 11, 2006 at 12:18 UTC ( [id://560420]=note: print w/replies, xml ) | Need Help?? |
Are you sure about that? Seems to me from perlapi that the caller is responsible for both incrementing and decrementing the stored SV. But since I'm not incrementing, why should I decrement upon failure? I took the example of a bare hv_store() with neither increment nor decrement from DBI.xs, as you suggested...
In Section
Seekers of Perl Wisdom
|
|