From: Jesse Luehrs Date: Fri, 12 Nov 2010 20:26:25 +0000 (-0600) Subject: don't leak the deconstructed var name X-Git-Tag: 0.14~50 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=301f570b58526c2263a537fefda6667aa73eacab;p=gitmo%2FPackage-Stash-XS.git don't leak the deconstructed var name --- diff --git a/Stash.xs b/Stash.xs index aefe1b1..42b3ee5 100644 --- a/Stash.xs +++ b/Stash.xs @@ -120,6 +120,7 @@ void _deconstruct_variable_hash(HV *variable, varspec_t *varspec) croak("The 'name' key is required in variable specs"); varspec->name = savesvpv(*val); + SAVEFREEPV(varspec->name); val = hv_fetch(variable, "sigil", 5, 0); if (!val)