1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r508: fixed a place where we used free() on memory from a talloc(). The new

talloc code catches errors like this.
This commit is contained in:
Andrew Tridgell 2004-05-06 05:57:33 +00:00 committed by Gerald (Jerry) Carter
parent 2331d4e76e
commit 22aa425c96

View File

@ -152,7 +152,6 @@ void conn_free(struct server_context *smb, struct tcon_context *conn)
bitmap_clear(smb->tree.bmap, conn->cnum);
smb->tree.num_open--;
ZERO_STRUCTP(conn);
SAFE_FREE(conn);
talloc_destroy(conn->mem_ctx);
}