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: https://git.tokkee.org/?a=commitdiff_plain;h=b231cf4c6d14522a22281db9cc9c51990c8af7ae;p=collectd.git perl: unlock mutex on error CID 37970 --- 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);