diff options
author | Anoop C S <anoopcs@redhat.com> | 2015-08-03 13:57:19 +0530 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-08-06 22:27:20 +0200 |
commit | f57a235a1f2cda05918971127c039f0499b9658b (patch) | |
tree | 68d076dc29f94f8ae39e79df5cd055ddee32a655 | |
parent | 9ae65b2546cb3d5c7662a37bf336dda38cfb3166 (diff) | |
download | samba-f57a235a1f2cda05918971127c039f0499b9658b.tar.gz |
lib/talloc: Fix CID 1291640 Missing unlock
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | lib/talloc/testsuite.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/talloc/testsuite.c b/lib/talloc/testsuite.c index 6d0fe94479e..011ad21eadb 100644 --- a/lib/talloc/testsuite.c +++ b/lib/talloc/testsuite.c @@ -1747,6 +1747,7 @@ static void *thread_fn(void *arg) ret = pthread_cond_wait(&condvar, &mtx); if (ret != 0) { talloc_free(top_ctx); + pthread_mutex_unlock(&mtx); return NULL; } } |