summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorRon Yorston2021-02-16 09:09:12 +0000
committerDenys Vlasenko2021-02-22 19:00:07 +0100
commit858f8aafacf93ff4642a2f62dc0d7f0f31f95cce (patch)
tree7f430e403e21bf97dc75f4e9ec6a72b9fb7715e5 /editors
parent9fa7d7d97d374b091819670299f25cad87a75779 (diff)
downloadbusybox-858f8aafacf93ff4642a2f62dc0d7f0f31f95cce.zip
busybox-858f8aafacf93ff4642a2f62dc0d7f0f31f95cce.tar.gz
diff: code shrink
function old new delta diff_main 1515 1495 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-20) Total: -20 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/diff.c b/editors/diff.c
index 2800917..1adc4cb 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -1050,7 +1050,7 @@ int diff_main(int argc UNUSED_PARAM, char **argv)
/* diffreg can get non-regular files here */
print_status(gotstdin > 1 ? STATUS_SAME : diffreg(file), file);
- if (dirfile)
+ if (ENABLE_FEATURE_CLEAN_UP && dirfile)
free(file[dir]);
}