Fixed memory leaks

This commit is contained in:
Sansar Choinyambuu
2011-11-28 17:19:40 +01:00
committed by Andreas Steffen
parent 31b1e389ea
commit b9d6aded18
3 changed files with 7 additions and 4 deletions
@@ -71,7 +71,7 @@ static pts_dh_group_t supported_dh_groups = 0;
* High Entropy Random Data
* used in calculation of shared secret for the assessment session
*/
static chunk_t responder_nonce;
static char *responder_nonce = NULL;
/**
* see section 3.7.1 of TCG TNC IF-IMC Specification 1.2
@@ -81,6 +81,8 @@ TNC_Result TNC_IMC_Initialize(TNC_IMCID imc_id,
TNC_Version max_version,
TNC_Version *actual_version)
{
rng_t *rng;
if (imc_attestation)
{
DBG1(DBG_IMC, "IMC \"%s\" has already been initialized", imc_name);