From: Sansar Choinyambuu Date: Fri, 7 Oct 2011 13:15:01 +0000 (+0200) Subject: Fixes for memory leaks X-Git-Tag: 4.6.2~344 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=768b6b95d7b22a20dc73fd0a7412eaa4b4ca0977;p=thirdparty%2Fstrongswan.git Fixes for memory leaks --- diff --git a/src/libpts/tcg/tcg_pts_attr_dh_nonce_params_resp.c b/src/libpts/tcg/tcg_pts_attr_dh_nonce_params_resp.c index cbbea4f91d..0b3b9daeb4 100644 --- a/src/libpts/tcg/tcg_pts_attr_dh_nonce_params_resp.c +++ b/src/libpts/tcg/tcg_pts_attr_dh_nonce_params_resp.c @@ -250,7 +250,7 @@ pa_tnc_attr_t *tcg_pts_attr_dh_nonce_params_resp_create(u_int8_t nonce_len, .dh_group = dh_group, .hash_algo_set = hash_algo_set, .responder_nonce = chunk_clone(responder_nonce), - .responder_pub_val = chunk_clone(responder_pub_val), + .responder_pub_val = responder_pub_val, ); return &this->public.pa_tnc_attribute; diff --git a/src/libpts/tcg/tcg_pts_attr_simple_comp_evid.c b/src/libpts/tcg/tcg_pts_attr_simple_comp_evid.c index 493a22733a..49ae01c647 100644 --- a/src/libpts/tcg/tcg_pts_attr_simple_comp_evid.c +++ b/src/libpts/tcg/tcg_pts_attr_simple_comp_evid.c @@ -566,8 +566,8 @@ pa_tnc_attr_t *tcg_pts_attr_simple_comp_evid_create( .transformation = params.transformation, .measurement_time = chunk_clone(params.measurement_time), .policy_uri = chunk_clone(params.policy_uri), - .pcr_before = chunk_clone(params.pcr_before), - .pcr_after = chunk_clone(params.pcr_after), + .pcr_before = params.pcr_before, + .pcr_after = params.pcr_after, .measurement = chunk_clone(params.measurement), );