This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
clear magic flags in sv_clear
authorDavid Mitchell <davem@iabyn.com>
Mon, 26 Mar 2012 12:31:24 +0000 (13:31 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 26 Mar 2012 14:00:03 +0000 (15:00 +0100)
commitf37f40f4443470b7a9dc16c4549f9074ff36057b
treeef2235609b36d7d534ec260dc03532e9949789d6
parent864db5fdec4230e524b19f1f01b8c8b499458d66
clear magic flags in sv_clear

commit 5bec93bead1c10563a402404de095bbdf398790f made temporary use of the
no-longer used SvMAGIC field while freeing a HV. This commit makes
sure that before this happens, that the SvMAGICAL flags are turned off.

This is because it turns out that some XS code (e.g. Glib) can leave an SV
with a null SvMAGIC field, but with magic flags still set.
sv.c