in reply to Re^2: perlembed: reference counts
in thread perlembed: reference counts

Perl_load_module is in op.c and calls Perl_vload_module (also in op.c)

I can't spot anything obvious.

Replies are listed 'Best First'.
Re^4: perlembed: reference counts (bug)
by tye (Sage) on Sep 20, 2007 at 19:56 UTC

    Perl_newSVOP() takes a new reference to the passed-in SV but doesn't increment the ref count. Other places that remove this reference drop the ref count. Looks like an ordinary bug.

    - tye