mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
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
This commit is contained in:
parent
1ecea454e5
commit
1f0dd8f698
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user