X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fperl.c;h=cf09586f71abceeb644cc1fd8d9083867fd6da82;hb=ef07224d5a3e24ccbc71765194d91a8e00ce16fc;hp=0a98684e9e809f30be3eb042abe3a254bb028510;hpb=20d15cfd26b23508242abcead906207bf26175d0;p=collectd.git 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);