From: Ruben Kerkhof Date: Sun, 29 Nov 2015 17:06:33 +0000 (+0100) Subject: perl: unlock mutex on error X-Git-Tag: collectd-5.5.1~7^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf4061d7f280863130619559c95badce90fb8444;p=collectd.git perl: unlock mutex on error CID 37970 --- 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);