]> git.sur5r.net Git - openldap/commitdiff
(clean up o_groups anyway)
authorHoward Chu <hyc@openldap.org>
Thu, 23 Oct 2003 01:30:54 +0000 (01:30 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 23 Oct 2003 01:30:54 +0000 (01:30 +0000)
servers/slapd/operation.c

index 2941bc03017d023bcf34c949c724eb2a62dad9c8..cb08e60eee324f456cb388ff611ab3af50868eba 100644 (file)
@@ -69,16 +69,14 @@ slap_op_free( Operation *op )
                free( op->o_sync_state.bv_val );
        }
 
-#if 0  /* needless, since it was allocated in tmpmem */
        {
                GroupAssertion *g, *n;
                for (g = op->o_groups; g; g=n) {
                        n = g->ga_next;
-                       free(g);
+                       sl_free(g, op->o_tmpmemctx);
                }
                op->o_groups = NULL;
        }
-#endif
 
 #if defined( LDAP_SLAPI )
        if ( op->o_pb != NULL ) {