From bf4061d7f280863130619559c95badce90fb8444 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 d42afc20..d247dc0e 100644 --- a/src/perl.c +++ b/src/perl.c @@ -1202,7 +1202,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