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/dh_genprime.c b/programs/pkey/dh_genprime.c index d30c73b..072fe13 100644 --- a/programs/pkey/dh_genprime.c +++ b/programs/pkey/dh_genprime.c
@@ -172,6 +172,7 @@ ( ret = mbedtls_mpi_write_file( "G = ", &G, 16, fout ) != 0 ) ) { mbedtls_printf( " failed\n ! mbedtls_mpi_write_file returned %d\n\n", ret ); + fclose( fout ); goto exit; }