destroy PL_svref_mutex in perl_destruct()
Gurusamy Sarathy [Mon, 1 Mar 1999 03:32:30 +0000 (03:32 +0000)]
p4raw-id: //depot/perl@3045

perl.c

diff --git a/perl.c b/perl.c
index 836ec10..bda1498 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -563,6 +563,9 @@ perl_destruct(register PerlInterpreter *sv_interp)
     MUTEX_DESTROY(&PL_eval_mutex);
     MUTEX_DESTROY(&PL_cred_mutex);
     COND_DESTROY(&PL_eval_cond);
+#ifdef EMULATE_ATOMIC_REFCOUNTS
+    MUTEX_DESTROY(&PL_svref_mutex);
+#endif /* EMULATE_ATOMIC_REFCOUNTS */
 
     /* As the penultimate thing, free the non-arena SV for thrsv */
     Safefree(SvPVX(PL_thrsv));