]> git.sur5r.net Git - openldap/commitdiff
Cleanup close
authorHoward Chu <hyc@openldap.org>
Thu, 27 Apr 2006 02:29:13 +0000 (02:29 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 27 Apr 2006 02:29:13 +0000 (02:29 +0000)
servers/slapd/overlays/refint.c

index e1f501413d5f379be4d6a93910648d5101745c19..013f3d03ac7ffbe1c2ea2f3e505fdc1ff90c83dc 100644 (file)
@@ -308,9 +308,7 @@ refint_close(
        ch_free(id->nothing.bv_val);
        ch_free(id->nnothing.bv_val);
 
-       on->on_bi.bi_private = NULL;    /* XXX */
-
-       ch_free(id);
+       memset( id, 0, sizeof(*id));
 
        return(0);
 }