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:
parent
2514302658
commit
88a8384388
@ -107,6 +107,9 @@ static uint8_t *hash_file(const char *filename)
|
|||||||
|
|
||||||
src_fd = open_or_warn_stdin(filename);
|
src_fd = open_or_warn_stdin(filename);
|
||||||
if (src_fd < 0) {
|
if (src_fd < 0) {
|
||||||
|
if (ENABLE_FEATURE_CLEAN_UP) {
|
||||||
|
RELEASE_CONFIG_BUFFER(in_buf);
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user