summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-09-19 12:14:45 +0100
committerDavid Mitchell <davem@iabyn.com>2010-09-20 08:16:12 +0100
commitb2ea9a00b30eb5881b863d7239dd6a3721e73136 (patch)
tree3eb16ba88ac391035a246fd0a02a82ed5ba82dfb /sv.c
parent57ef47cc7bcd1b57927d5010f363ccaa10f1d990 (diff)
downloadperl-b2ea9a00b30eb5881b863d7239dd6a3721e73136.tar.gz
PL_ofsgv is ref counted, so inc when duping
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 2930d04690..b5de5ce989 100644
--- a/sv.c
+++ b/sv.c
@@ -12337,7 +12337,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_regex_pad = AvARRAY(PL_regex_padav);
/* shortcuts to various I/O objects */
- PL_ofsgv = gv_dup(proto_perl->Iofsgv, param);
+ PL_ofsgv = gv_dup_inc(proto_perl->Iofsgv, param);
PL_stdingv = gv_dup(proto_perl->Istdingv, param);
PL_stderrgv = gv_dup(proto_perl->Istderrgv, param);
PL_defgv = gv_dup(proto_perl->Idefgv, param);