summaryrefslogtreecommitdiffstats
path: root/Stash.xs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-11-12 14:26:25 -0600
committerJesse Luehrs <doy@tozt.net>2010-11-12 14:26:25 -0600
commit301f570b58526c2263a537fefda6667aa73eacab (patch)
tree10fa64efcdfdbe0d9c7bdfd854df91e61fc7522d /Stash.xs
parentcb4df463eddfb4fb9b4090e43a860a2722ae6d34 (diff)
downloadpackage-stash-xs-301f570b58526c2263a537fefda6667aa73eacab.tar.gz
package-stash-xs-301f570b58526c2263a537fefda6667aa73eacab.zip
don't leak the deconstructed var name
Diffstat (limited to 'Stash.xs')
-rw-r--r--Stash.xs1
1 files changed, 1 insertions, 0 deletions
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)