From: Pierangelo Masarati Date: Thu, 30 Dec 2010 21:52:09 +0000 (+0000) Subject: silence valgrind X-Git-Tag: MIGRATION_CVS2GIT~318 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=41aa82350ea76ad364668b99a4d62b139e005156;p=openldap silence valgrind --- 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();