From: Richard Maciel <[email protected]>

Related to coverity CID 10307.

Pointer handles got memory allocated for it, but that memory is never
freed at the end of the function.

Signed-off-by: Richard Maciel <[email protected]>
---
 src/tspi/tsp_auth.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tspi/tsp_auth.c b/src/tspi/tsp_auth.c
index 5ee6f5d..f11fa60 100755
--- a/src/tspi/tsp_auth.c
+++ b/src/tspi/tsp_auth.c
@@ -1225,6 +1225,8 @@ Transport_TerminateHandle(TSS_HCONTEXT tspContext, /* in 
*/
        result = obj_context_transport_execute(tspContext, 
TPM_ORD_Terminate_Handle, 0, NULL,
                                               NULL, &handlesLen, &handles, 
NULL, NULL, NULL, NULL);
 
+       free(handles);
+
        return result;
 }
 #endif
-- 
1.8.5.3


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to