summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-27 09:57:44 -0600
committerKarl Williamson <khw@cpan.org>2018-03-27 12:24:44 -0600
commit6b8883fd1cf67ecbc86ebdf568deb5ee70f3326f (patch)
treeac86d755891da52871a493c9cbc41d931db9a193 /utf8.c
parentfe2633c88044a8e06d0ea49bcfc02ab4b789aa03 (diff)
downloadperl-6b8883fd1cf67ecbc86ebdf568deb5ee70f3326f.tar.gz
utf8.c: fix leak
Commit 8946fcd98c63bdc848cec00a1c72aaf232d932a1 failed to free a scalar it created. I meant to do so, but in the end, forgot.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index b06356579e..b3dd09d6b8 100644
--- a/utf8.c
+++ b/utf8.c
@@ -5332,6 +5332,8 @@ Perl__swash_inversion_hash(pTHX)
}
}
+ SvREFCNT_dec(swash);
+
return ret;
}