From b231cf4c6d14522a22281db9cc9c51990c8af7ae Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 29 Nov 2015 18:06:33 +0100 Subject: [PATCH] perl: unlock mutex on error CID 37970 --- src/perl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/perl.c b/src/perl.c index 0a98684e..cf09586f 100644 --- a/src/perl.c +++ b/src/perl.c @@ -1199,7 +1199,10 @@ static void c_ithread_destructor (void *arg) /* the ithread no longer exists */ if (NULL == t) + { + pthread_mutex_unlock (&perl_threads->mutex); return; + } c_ithread_destroy (ithread); -- 2.30.2