From 301f570b58526c2263a537fefda6667aa73eacab Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 12 Nov 2010 14:26:25 -0600 Subject: don't leak the deconstructed var name --- Stash.xs | 1 + 1 file changed, 1 insertion(+) (limited to 'Stash.xs') 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) -- cgit v1.2.3-54-g00ecf