From 38bd7ad824475827a398201ca9ae79a9b2b70c50 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Mon, 5 Aug 2013 00:28:48 -0700 Subject: [PATCH] =?utf8?q?toke.c:incline:=20Don=E2=80=99t=20stringify=20a?= =?utf8?q?=20GV=20to=20look=20it=20up?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If we already have the GV, there is no need to stringify it and then look it up again. --- toke.c | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/toke.c b/toke.c index 3689422..7033bc6 100644 --- a/toke.c +++ b/toke.c @@ -1760,22 +1760,8 @@ S_incline(pTHX_ const char *s) * to *{"::_ 0) { @@ -1821,8 +1803,6 @@ S_incline(pTHX_ const char *s) } if (tmpbuf2 != smallbuf) Safefree(tmpbuf2); - } - if (tmpbuf != smallbuf) Safefree(tmpbuf); } CopFILE_free(PL_curcop); CopFILE_setn(PL_curcop, s, len); -- 2.7.4