summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pp.c b/pp.c
index d15db834e3..e2a70151b3 100644
--- a/pp.c
+++ b/pp.c
@@ -738,7 +738,6 @@ S_do_chomp(pTHX_ SV *retval, SV *sv, bool chomping)
if (chomping) {
if (s && len) {
char *temp_buffer = NULL;
- SV *svrecode = NULL;
s += --len;
if (RsPARA(PL_rs)) {
if (*s != '\n')
@@ -771,7 +770,7 @@ S_do_chomp(pTHX_ SV *retval, SV *sv, bool chomping)
is the buffer inside PL_rs, so don't free it.
*/
assert (temp_buffer == rsptr);
- goto nope_free_sv;
+ goto nope_free_nothing;
}
rsptr = temp_buffer;
}
@@ -804,8 +803,6 @@ S_do_chomp(pTHX_ SV *retval, SV *sv, bool chomping)
nope_free_all:
Safefree(temp_buffer);
- nope_free_sv:
- SvREFCNT_dec(svrecode);
nope_free_nothing: ;
}
} else {