stop leaking FILE* objects when hashing
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 27 Nov 2018 15:30:41 +0000 (16:30 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 18 Dec 2018 11:57:30 +0000 (12:57 +0100)
commit4cefaf511d9ed79ad13ab59c46bd0ddc60e758f6
treed1c939b62be0a476850befff4b53ca7d7ad1b2d2
parente613cd718ebc029df11f4b43b55e65c95451a04a
stop leaking FILE* objects when hashing

In hash_file(), the input FILE* needs freeing when no error
occurred. Do this as soon as it is not needed anymore.
src/crypto.cpp