aes: fix key memory leak

Call TEE_Free on key pointer after the key is copied into the object.

Signed-off-by: Michal Morsisko <morsisko@gmail.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
1 file changed
tree: f78735443002aec59aae0f8e9f9fe577eefddfa7
  1. .github/
  2. acipher/
  3. aes/
  4. hello_world/
  5. hotp/
  6. plugins/
  7. random/
  8. secure_storage/
  9. .gitignore
  10. Android.mk
  11. CMakeLists.txt
  12. CMakeToolchain.txt
  13. LICENSE
  14. Makefile
  15. README.md
README.md

OP-TEE Sample Applications

This git contains source code for sample host and Trusted Application that can be used directly in the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_examples.

// OP-TEE core maintainers