]> git.sur5r.net Git - openldap/commitdiff
silence valgrind
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Dec 2010 21:52:09 +0000 (21:52 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Dec 2010 21:52:09 +0000 (21:52 +0000)
contrib/slapd-modules/vc/vc.c

index a5f41bfd74a04b3b39ddde03a7b86e47de545985..219f62be5e30e2ffb4db0e8d1219797939055e7b 100644 (file)
@@ -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();