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:
parent
2331d4e76e
commit
22aa425c96
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user