diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-18 01:22:35 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-18 01:22:35 +0000 |
commit | f6aaf50100351be0339a4acf484db91a3c02a9ca (patch) | |
tree | 2e25ffd9b22abf41c1a69f9af980f1f838d6a7ae /op.c | |
parent | dc92893f11da1644967e0cba1816c77151a07426 (diff) | |
download | perl-f6aaf50100351be0339a4acf484db91a3c02a9ca.tar.gz |
fix CvMUTEXP() leaks with -Dusethreads
p4raw-id: //depot/perl@1524
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3532,7 +3532,8 @@ newSUB(I32 floor, OP *o, OP *proto, OP *block) CvSTASH(cv) = curstash; #ifdef USE_THREADS CvOWNER(cv) = 0; - New(666, CvMUTEXP(cv), 1, perl_mutex); + if (!CvMUTEXP(cv)) + New(666, CvMUTEXP(cv), 1, perl_mutex); MUTEX_INIT(CvMUTEXP(cv)); #endif /* USE_THREADS */ |