Bug 980270 - Part 1: Plug a couple of common leaks in nICEr. r=drno

This commit is contained in:
Byron Campen [:bwc] 2014-03-06 14:43:15 -08:00
parent 0f91bd9e9f
commit 2048be3f64
2 changed files with 5 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);