In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/258dae8478e5de6218ce3594ba4ff51afe0981e4?hp=515c1ce3ec58ec5e61fada74b46e44f373540348>
- Log ----------------------------------------------------------------- commit 258dae8478e5de6218ce3594ba4ff51afe0981e4 Author: Zefram <[email protected]> Date: Tue Nov 14 12:56:35 2017 +0000 fix newPVOP() doc re freeing of pv [perl #127697] ----------------------------------------------------------------------- Summary of changes: op.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/op.c b/op.c index befef7cc5d..18631d0059 100644 --- a/op.c +++ b/op.c @@ -7193,9 +7193,10 @@ Perl_newGVOP(pTHX_ I32 type, I32 flags, GV *gv) Constructs, checks, and returns an op of any type that involves an embedded C-level pointer (PV). C<type> is the opcode. C<flags> gives -the eight bits of C<op_flags>. C<pv> supplies the C-level pointer, which -must have been allocated using C<PerlMemShared_malloc>; the memory will -be freed when the op is destroyed. +the eight bits of C<op_flags>. C<pv> supplies the C-level pointer. +Depending on the op type, the memory referenced by C<pv> may be freed +when the op is destroyed. If the op is of a freeing type, C<pv> must +have been allocated using C<PerlMemShared_malloc>. =cut */ -- Perl5 Master Repository
