From: Guus Sliepen Date: Mon, 7 Oct 2019 12:23:15 +0000 (+0200) Subject: Fix a double call to pthread_mutex_unlock(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1e2076334fd067db863956c7bda77fcbcc9a52fc;p=meshlink Fix a double call to pthread_mutex_unlock(). Found by ThreadSanitizer. --- 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) {