commit | 3914840d784e00f263a574f11dfa9effe9c44f01 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Apr 17 16:02:36 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Tue Jul 08 18:28:30 2014 +0200 |
tree | 090f57e1964e6e5408d8f1821f6d47f077399e5e | |
parent | 993f02cda0272c1f02d2d77dd44ac9c2d30553f4 [diff] [blame] |
Cleaned up location of init and free for some programs to prevent memory leaks on incorrect arguments
diff --git a/programs/hash/sha2sum.c b/programs/hash/sha2sum.c index c01bb1c..f731c3c 100644 --- a/programs/hash/sha2sum.c +++ b/programs/hash/sha2sum.c
@@ -136,6 +136,8 @@ n = sizeof( line ); } + fclose( f ); + if( nb_err1 != 0 ) { printf( "WARNING: %d (out of %d) input files could "