Skip to content

Commit a1c407c

Browse files
committed
[squash-me] PR review fix: nullify PL_strtab in perl_destruct
1 parent 4f32a32 commit a1c407c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

intrpvar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PERLVARI(I, hash_rand_bits_enabled, U8, 1) /* used to randomize hash stuff
6565
#endif
6666
PERLVARI(I, hash_rand_bits, UV, 0) /* used to randomize hash stuff */
6767
#endif
68-
PERLVARI(I, strtab, HV *, NULL) /* shared string table */
68+
PERLVARI(I, strtab, HV *, 0) /* shared string table */
6969
/* prog counter for the currently executing OP_MULTIDEREF Used to signal
7070
* to S_find_uninit_var() where we are */
7171
PERLVAR(I, multideref_pc, UNOP_AUX_item *)

perl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,7 @@ perl_destruct(pTHXx)
13891389
HvTOTALKEYS(PL_strtab) = 0;
13901390
}
13911391
SvREFCNT_dec(PL_strtab);
1392+
PL_strtab = NULL;
13921393

13931394
#ifdef USE_ITHREADS
13941395
/* free the pointer tables used for cloning */

0 commit comments

Comments
 (0)