Re: Having memory leak issues with perl-c

2022-08-03 Thread Mark Murawski
On 7/27/22 13:20, demerphq wrote: A general rule of thumb however is that any item you create yourself which is not "owned by perl" by being attached to some data structure it exposes is your problem to deal with. So for instance this:      FNsv = get_sv("main::_FN", GV_ADD); is getting you

Re: Having memory leak issues with perl-c

2022-08-03 Thread demerphq
On Thu, 4 Aug 2022 at 01:58, Mark Murawski wrote: > I'm still not getting something... if I want to fix the code-as-is and do > this: > > FNsv = get_sv("main::_FN", GV_ADD); > if (!FNsv) > ereport(ERROR, > (errcode(ERRCODE_EXTERNAL_ROUTINE_EXCEPTION), >