4ee790: lib: clean up potential memory leak
GitHub
Branch: refs/heads/2.X
Home: https://github.com/01org/tpm2-tools
Commit: 4ee79001a2e7b51d29781cb313bbb55b70d7edbc
https://github.com/01org/tpm2-tools/commit/4ee79001a2e7b51d29781cb313bbb55b70d7edbc
Author: Jerry Snitselaar <jsnitsel(a)redhat.com>
Date: 2017-10-19 (Thu, 19 Oct 2017)
Changed paths:
M lib/context-util.c
Log Message:
-----------
lib: clean up potential memory leak
In case where sapi_ctx_init fails in sapi_init_from_options, free tcti_ctx.
Signed-off-by Jerry Snitselaar <jsnitsel(a)redhat.com>