From: Florian Forster Date: Fri, 17 Nov 2017 14:15:32 +0000 (+0100) Subject: gps plugin: Fix double unlock. X-Git-Tag: collectd-5.8.0~1^2~2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=4962291342f14fecbc6bb0240bd8ec7c76e2fc64 gps plugin: Fix double unlock. CID: 179241 --- diff --git a/src/gps.c b/src/gps.c index a4b3e2e7..141c0321 100644 --- a/src/gps.c +++ b/src/gps.c @@ -307,7 +307,6 @@ static int cgps_shutdown(void) { free(res); // Clean mutex: - pthread_mutex_unlock(&cgps_thread_lock); pthread_mutex_destroy(&cgps_thread_lock); pthread_mutex_unlock(&cgps_data_lock); pthread_mutex_destroy(&cgps_data_lock);