mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 980270 - Part 1: Plug a couple of common leaks in nICEr. r=drno
This commit is contained in:
parent
d853c2bc87
commit
549830a5a1
@ -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