[PATCH] dd: free allocated memory if CLEANUP enabled

Alexey Soloviev EXT-Alexey.Soloviev at nokia.com
Wed Mar 16 08:04:02 UTC 2011


Hello.
Here is a patch adding memory cleanup in dd if ENABLE_FEATURE_CLEAN_UP 
is defined.
Tested with valgrdind for equal and different ibs and obs.  Now valgrind 
says about 29 bytes that are always allocated once in 
make_human_readable_str() at first call and referenced by static 
pointer. That hardly should be fixed.

Best Regards,
Alexey.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dd-free-allocated-memory-if-CLEANUP-enabled.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110316/daeff87e/attachment-0001.bin>


More information about the busybox mailing list