diff options
author | Volker Lendecke <vl@samba.org> | 2016-10-12 12:27:56 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-10-15 01:28:01 +0200 |
commit | 1f0dd8f698e7bd74846d3b4c36a5c3dac2098051 (patch) | |
tree | 3e7cb8134462c6ac09f288f1525a0b17d8e45491 /lib | |
parent | 1ecea454e55ccd683f7b098181917ddeed203ebe (diff) | |
download | samba-1f0dd8f698e7bd74846d3b4c36a5c3dac2098051.tar.gz |
talloc: Fix CID 1373619 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Oct 15 01:28:02 CEST 2016 on sn-devel-144
Diffstat (limited to 'lib')
-rw-r--r-- | lib/talloc/testsuite.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/talloc/testsuite.c b/lib/talloc/testsuite.c index cff443ca24c..7f98f4b4668 100644 --- a/lib/talloc/testsuite.c +++ b/lib/talloc/testsuite.c @@ -1839,8 +1839,8 @@ 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; + ret = pthread_mutex_unlock(&mtx); + assert(ret == 0); } } @@ -1849,7 +1849,8 @@ static bool test_pthread_talloc_passing(void) /* Tell the sub-threads we're ready for another. */ pthread_cond_broadcast(&condvar); - pthread_mutex_unlock(&mtx); + ret = pthread_mutex_unlock(&mtx); + assert(ret == 0); } CHECK_SIZE("pthread_talloc_passing", mem_ctx, NUM_THREADS * 100); |