commit | ce52d7823c0c8dc4011ba841cda28050ced336fb | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Tue May 31 14:03:54 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Tue Jun 07 14:52:35 2016 +0100 |
tree | 31e13c609565e8270a18ed73d0fe6e74c030ad06 | |
parent | 78da223f68e039f9e94cdaff35314779b9d126a9 [diff] [blame] |
Address user reported coverity issues.
diff --git a/programs/pkey/rsa_decrypt.c b/programs/pkey/rsa_decrypt.c index 94431e0..194f2de 100644 --- a/programs/pkey/rsa_decrypt.c +++ b/programs/pkey/rsa_decrypt.c
@@ -116,6 +116,7 @@ ( ret = mbedtls_mpi_read_file( &rsa.QP, 16, f ) ) != 0 ) { mbedtls_printf( " failed\n ! mbedtls_mpi_read_file returned %d\n\n", ret ); + fclose( f ); goto exit; }