Auto-Merge pull request #2547 from octo/cid/81390
authorcollectd bot <32910397+collectd-bot@users.noreply.github.com>
Fri, 17 Nov 2017 15:08:50 +0000 (16:08 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Nov 2017 15:08:50 +0000 (16:08 +0100)
Automatically merged due to "Automerge" label

src/gps.c

index a4b3e2e..141c032 100644 (file)
--- 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);