From: Stefan Metzmacher Date: Wed, 20 Jun 2018 13:38:08 +0000 (+0200) Subject: pthreadpool: use talloc_zero() in tests_cmocka.c setup_pthreadpool_tevent() X-Git-Tag: ldb-1.5.0~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f54db10911762298d1d4fe681d0aaf705f6f55;p=thirdparty%2Fsamba.git pthreadpool: use talloc_zero() in tests_cmocka.c setup_pthreadpool_tevent() This was found with valgrind. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/lib/pthreadpool/tests_cmocka.c b/lib/pthreadpool/tests_cmocka.c index 33952442e1d..d80b8c8f775 100644 --- a/lib/pthreadpool/tests_cmocka.c +++ b/lib/pthreadpool/tests_cmocka.c @@ -41,7 +41,7 @@ static int setup_pthreadpool_tevent(void **state) struct pthreadpool_tevent_test *t; int ret; - t = talloc(NULL, struct pthreadpool_tevent_test); + t = talloc_zero(NULL, struct pthreadpool_tevent_test); assert_non_null(t); t->ev = tevent_context_init(t);