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:
beea5a7
)
dd: free allocated memory if CLEANUP enabled
author
Alexey Soloviev
<EXT-Alexey.Soloviev@nokia.com>
Wed, 16 Mar 2011 07:39:46 +0000
(10:39 +0300)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 22 Mar 2011 16:42:29 +0000
(17:42 +0100)
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/dd.c
patch
|
blob
|
history
diff --git
a/coreutils/dd.c
b/coreutils/dd.c
index 347a19454ecd9cf3a1dd1a70c10586c1e65de695..9973a145b4e0e7a97337b74c682ba39fbbbd59d6 100644
(file)
--- a/
coreutils/dd.c
+++ b/
coreutils/dd.c
@@
-397,5
+397,11
@@
int dd_main(int argc UNUSED_PARAM, char **argv)
out_status:
dd_output_status(0);
+ if (ENABLE_FEATURE_CLEAN_UP) {
+ free(obuf);
+ if (flags & FLAG_TWOBUFS)
+ free(ibuf);
+ }
+
return exitcode;
}