]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/talloc: Fix CID 1291639 Missing unlock
authorAnoop C S <anoopcs@redhat.com>
Mon, 3 Aug 2015 08:29:33 +0000 (13:59 +0530)
committerMichael Adam <obnox@samba.org>
Thu, 6 Aug 2015 20:27:21 +0000 (22:27 +0200)
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/talloc/testsuite.c

index 011ad21eadb0976171e8def7e3b1aa2579f3af94..c67cfb9505244ed9c86919a4ec28331d1576aa26 100644 (file)
@@ -1828,6 +1828,7 @@ static bool test_pthread_talloc_passing(void)
                                printf("pthread_cond_wait %d failed (%d)\n", i,
                                        ret);
                                talloc_free(mem_ctx);
+                               pthread_mutex_unlock(&mtx);
                                return false;
                        }
                }