md5/sha1sum: fix small resource leak

Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Alexey Fomenko 2011-04-16 18:49:39 +02:00 committed by Denys Vlasenko
parent 2514302658
commit 88a8384388

View File

@ -107,6 +107,9 @@ static uint8_t *hash_file(const char *filename)
src_fd = open_or_warn_stdin(filename);
if (src_fd < 0) {
if (ENABLE_FEATURE_CLEAN_UP) {
RELEASE_CONFIG_BUFFER(in_buf);
}
return NULL;
}