From 1e2076334fd067db863956c7bda77fcbcc9a52fc Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 7 Oct 2019 14:23:15 +0200 Subject: [PATCH] Fix a double call to pthread_mutex_unlock(). Found by ThreadSanitizer. --- src/discovery.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/discovery.c b/src/discovery.c index 323d22cf..6b98a276 100644 --- a/src/discovery.c +++ b/src/discovery.c @@ -114,8 +114,6 @@ done: free(fingerprint); free(txt_name); free(txt_fingerprint); - - pthread_mutex_unlock(&(mesh->mesh_mutex)); } static void discovery_server_callback(CattaServer *server, CattaServerState state, void *userdata) { -- 2.39.2