From: Alexey Fomenko Date: Sat, 16 Apr 2011 16:49:39 +0000 (+0200) Subject: md5/sha1sum: fix small resource leak X-Git-Tag: 1_19_0~175 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=88a838438819f7a5224a2ab3ea99219f9a666bf4;p=oweals%2Fbusybox.git md5/sha1sum: fix small resource leak Signed-off-by: Alexey Fomenko Signed-off-by: Denys Vlasenko --- diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 09f3a0080..8270d97e2 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c @@ -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; }