1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-26 04:23:49 +03:00

r2635: mem_ctx cleanups on the lsa and netlogon pipes in the rpc server

This commit is contained in:
Andrew Tridgell
2004-09-25 13:28:38 +00:00
committed by Gerald (Jerry) Carter
parent 56ecda2178
commit 1ee5ed4197
3 changed files with 19 additions and 50 deletions

View File

@@ -108,14 +108,9 @@ void dcesrv_tcp_init(struct server_service *service, const struct model_ops *mod
}
} else {
struct in_addr *ifip;
TALLOC_CTX *mem_ctx = talloc_init("open_sockets_smbd");
if (!mem_ctx) {
smb_panic("No memory");
}
ifip = interpret_addr2(mem_ctx, lp_socket_address());
ifip = interpret_addr2(dce_ctx, lp_socket_address());
add_socket_rpc(service, model_ops, dce_ctx, ifip);
talloc_destroy(mem_ctx);
talloc_free(ifip);
}
return;