projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2514302
)
md5/sha1sum: fix small resource leak
author
Alexey Fomenko
<ext-alexey.fomenko@nokia.com>
Sat, 16 Apr 2011 16:49:39 +0000
(18:49 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 16 Apr 2011 16:49:39 +0000
(18:49 +0200)
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/md5_sha1_sum.c
patch
|
blob
|
history
diff --git
a/coreutils/md5_sha1_sum.c
b/coreutils/md5_sha1_sum.c
index 09f3a00802df411c00ac935618f5319d9a95ba71..8270d97e22deba65ecf4951e5aae236c886baf67 100644
(file)
--- 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;
}