Richard Maciel
2013-10-28 18:05:16 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Trousers".
The branch, master has been updated
via 971468df63a34508add7492193b4a27c264b72d1 (commit)
from 7f44dcad1065c9c4e15c08523e801ce3365668a9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://trousers.git.sourceforge.net/git/gitweb.cgi?p=trousers/trousers;a=commitdiff;h=971468df63a34508add7492193b4a27c264b72d1
commit 971468df63a34508add7492193b4a27c264b72d1
Author: Ceri Coburn <***@gmail.com>
Date: Thu Oct 24 10:14:45 2013 +0100
Memory leak fix for Tspi_TPM_CollateIdentityRequest
Signed-off-by: Ceri Coburn <***@gmail.com>
Acked-by: Joel Schopp <***@linux.vnet.ibm.com>
Tested-by: Richard Maciel <***@linux.vnet.ibm.com>
diff --git a/src/tspi/tspi_aik.c b/src/tspi/tspi_aik.c
index 54dd729..3d041b9 100644
--- a/src/tspi/tspi_aik.c
+++ b/src/tspi/tspi_aik.c
@@ -182,8 +182,10 @@ Tspi_TPM_CollateIdentityRequest(TSS_HTPM hTPM, /* in */
return result;
if ((result = authsess_xsap_init(tspContext, hTPM, hIdentityKey, TSS_AUTH_POLICY_REQUIRED,
- TPM_ORD_MakeIdentity, TPM_ET_OWNER, &xsap)))
+ TPM_ORD_MakeIdentity, TPM_ET_OWNER, &xsap))){
+ free(asymParms.parms);
return result;
+ }
/* Hash the Auth data */
result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
@@ -392,6 +394,7 @@ Tspi_TPM_CollateIdentityRequest(TSS_HTPM hTPM, /* in */
error:
authsess_free(xsap);
free_key_refs(&caKey);
+ free(asymParms.parms);
free(prgbIdentityBinding);
free(prgbEndorsementCredential);
free(prgbPlatformCredential);
-----------------------------------------------------------------------
Summary of changes:
src/tspi/tspi_aik.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
generated because a ref change was pushed to the repository containing
the project "Trousers".
The branch, master has been updated
via 971468df63a34508add7492193b4a27c264b72d1 (commit)
from 7f44dcad1065c9c4e15c08523e801ce3365668a9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://trousers.git.sourceforge.net/git/gitweb.cgi?p=trousers/trousers;a=commitdiff;h=971468df63a34508add7492193b4a27c264b72d1
commit 971468df63a34508add7492193b4a27c264b72d1
Author: Ceri Coburn <***@gmail.com>
Date: Thu Oct 24 10:14:45 2013 +0100
Memory leak fix for Tspi_TPM_CollateIdentityRequest
Signed-off-by: Ceri Coburn <***@gmail.com>
Acked-by: Joel Schopp <***@linux.vnet.ibm.com>
Tested-by: Richard Maciel <***@linux.vnet.ibm.com>
diff --git a/src/tspi/tspi_aik.c b/src/tspi/tspi_aik.c
index 54dd729..3d041b9 100644
--- a/src/tspi/tspi_aik.c
+++ b/src/tspi/tspi_aik.c
@@ -182,8 +182,10 @@ Tspi_TPM_CollateIdentityRequest(TSS_HTPM hTPM, /* in */
return result;
if ((result = authsess_xsap_init(tspContext, hTPM, hIdentityKey, TSS_AUTH_POLICY_REQUIRED,
- TPM_ORD_MakeIdentity, TPM_ET_OWNER, &xsap)))
+ TPM_ORD_MakeIdentity, TPM_ET_OWNER, &xsap))){
+ free(asymParms.parms);
return result;
+ }
/* Hash the Auth data */
result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
@@ -392,6 +394,7 @@ Tspi_TPM_CollateIdentityRequest(TSS_HTPM hTPM, /* in */
error:
authsess_free(xsap);
free_key_refs(&caKey);
+ free(asymParms.parms);
free(prgbIdentityBinding);
free(prgbEndorsementCredential);
free(prgbPlatformCredential);
-----------------------------------------------------------------------
Summary of changes:
src/tspi/tspi_aik.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
Trousers
Trousers