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 | 6e5044ff8711703181c7476e38657a8e08537621 (patch) | |
tree | 2e25ffd9b22abf41c1a69f9af980f1f838d6a7ae /op.c | |
parent | a87ddeda84874c25b81b004c97fe5676113f7700 (diff) | |
download | perl-6e5044ff8711703181c7476e38657a8e08537621.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 */ |