From 41aa82350ea76ad364668b99a4d62b139e005156 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 30 Dec 2010 21:52:09 +0000 Subject: [PATCH] silence valgrind --- contrib/slapd-modules/vc/vc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/slapd-modules/vc/vc.c b/contrib/slapd-modules/vc/vc.c index a5f41bfd74..219f62be5e 100644 --- a/contrib/slapd-modules/vc/vc.c +++ b/contrib/slapd-modules/vc/vc.c @@ -249,7 +249,7 @@ vc_exop( } else { void *thrctx; - conn = (vc_conn_t *)SLAP_MALLOC( sizeof( vc_conn_t ) ); + conn = (vc_conn_t *)SLAP_CALLOC( 1, sizeof( vc_conn_t ) ); conn->refcnt = 1; thrctx = ldap_pvt_thread_pool_context(); -- 2.39.5