commit | 98e28a74e33f32bcb855e16f8d5d2016b2102129 | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Tue May 31 14:03:54 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Thu Jun 09 13:41:28 2016 +0100 |
tree | abd3b82b6139be155d32ccb689d26bdf35cd56c5 | |
parent | f991128d40cfca5b585130702d630c12625dcc61 [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; }