mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980270 - Part 1: Plug a couple of common leaks in nICEr. r=drno
This commit is contained in:
parent
0f91bd9e9f
commit
2048be3f64
@ -96,6 +96,7 @@ static int nr_ice_pre_answer_request_destroy(nr_ice_pre_answer_request **parp)
|
||||
nr_stun_message_destroy(&par->req.response);
|
||||
|
||||
RFREE(par->username);
|
||||
RFREE(par);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
@ -521,6 +521,10 @@ int nr_stun_client_process_response(nr_stun_client_ctx *ctx, UCHAR *msg, int len
|
||||
password = &hmac_key;
|
||||
}
|
||||
|
||||
if (ctx->response) {
|
||||
nr_stun_message_destroy(&ctx->response);
|
||||
}
|
||||
|
||||
if ((r=nr_stun_message_create2(&ctx->response, msg, len)))
|
||||
ABORT(r);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user