From: Ruben Kerkhof Date: Sun, 29 Nov 2015 17:06:33 +0000 (+0100) Subject: perl: unlock mutex on error X-Git-Tag: collectd-5.6.0~553^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1389%2Fhead;p=thirdparty%2Fcollectd.git perl: unlock mutex on error CID 37970 --- diff --git a/src/perl.c b/src/perl.c index 0a98684e9..cf09586f7 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);