use a talloc_unlink() as ops may have a reference
[metze/samba/wip.git] / 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);
        }