use a talloc_unlink() as ops may have a reference
authorAndrew Tridgell <tridge@samba.org>
Wed, 1 Jul 2009 04:02:37 +0000 (14:02 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 1 Jul 2009 05:15:37 +0000 (15:15 +1000)
source4/ldap_server/ldap_backend.c

index a091c1d11e9623e339b4852a20dd6fb010e17bcf..3af48ae20d993869fbe3d1e7be6c703060fbd1b8 100644 (file)
@@ -89,7 +89,7 @@ NTSTATUS ldapsrv_backend_Init(struct ldapsrv_connection *conn)
                                j++;
                        }
                }
-               talloc_free(ops);
+               talloc_unlink(conn, ops);
                ldb_set_opaque(conn->ldb, "supportedSASLMechanims", sasl_mechs);
        }