mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r4915: free temp context _before_ the async callback, as the async callback might destroy our top level context
leaving the tmp context freed (so a double free)
This commit is contained in:
parent
bc901ecfb4
commit
b20c0561b8
@ -122,10 +122,10 @@ failed:
|
|||||||
nbt_name_request_destructor(req);
|
nbt_name_request_destructor(req);
|
||||||
req->status = status;
|
req->status = status;
|
||||||
req->state = NBT_REQUEST_ERROR;
|
req->state = NBT_REQUEST_ERROR;
|
||||||
|
talloc_free(tmp_ctx);
|
||||||
if (req->async.fn) {
|
if (req->async.fn) {
|
||||||
req->async.fn(req);
|
req->async.fn(req);
|
||||||
}
|
}
|
||||||
talloc_free(tmp_ctx);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user