summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index db20152c18..25eda27424 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -4364,7 +4364,7 @@ PP(pp_system)
sv_2mortal(copysv);
if (SvPOK(origsv) || SvPOKp(origsv)) {
pv = SvPV_nomg(origsv, len);
- sv_setpvn(copysv, pv, len);
+ sv_setpvn_fresh(copysv, pv, len);
SvPOK_off(copysv);
}
if (SvIOK(origsv) || SvIOKp(origsv))