From: Rafael Garcia-Suarez Date: Tue, 29 May 2007 15:48:27 +0000 (+0000) Subject: Plug a memory leak in Encode X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ead8143a52fa6f941a4e41a7802d43ef4363b70;p=p5sagit%2Fp5-mst-13.2.git Plug a memory leak in Encode p4raw-id: //depot/perl@31307 --- diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index c86ce82..265aec0 100644 --- a/ext/Encode/Encode.xs +++ b/ext/Encode/Encode.xs @@ -87,6 +87,7 @@ do_fallback_cb(pTHX_ UV ch) LEAVE; retval = newSVpv("",0); sv_catsv(retval, temp); + SvREFCNT_dec(temp); return retval; }