aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Fomenko <ext-alexey.fomenko@nokia.com>2011-04-16 18:49:39 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-04-16 18:49:39 +0200
commit88a838438819f7a5224a2ab3ea99219f9a666bf4 (patch)
tree0d269b688adb52ad408607ced3fda69e82ab817e
parent2514302658d4c9655965f90d560b58e6dc92856b (diff)
downloadbusybox-w32-88a838438819f7a5224a2ab3ea99219f9a666bf4.tar.gz
busybox-w32-88a838438819f7a5224a2ab3ea99219f9a666bf4.tar.bz2
busybox-w32-88a838438819f7a5224a2ab3ea99219f9a666bf4.zip
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>
-rw-r--r--coreutils/md5_sha1_sum.c3
1 files changed, 3 insertions, 0 deletions
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)
107 107
108 src_fd = open_or_warn_stdin(filename); 108 src_fd = open_or_warn_stdin(filename);
109 if (src_fd < 0) { 109 if (src_fd < 0) {
110 if (ENABLE_FEATURE_CLEAN_UP) {
111 RELEASE_CONFIG_BUFFER(in_buf);
112 }
110 return NULL; 113 return NULL;
111 } 114 }
112 115