projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
126d595
)
tac: suppress technically unneeded "free"
author
Jim Meyering
<meyering@redhat.com>
Sat, 28 Aug 2010 19:54:17 +0000
(21:54 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Wed, 1 Sep 2010 15:17:31 +0000
(17:17 +0200)
* src/tac.c (main): Guard final free with #ifdef lint.
Suggested by Paul Eggert.
src/tac.c
patch
|
blob
|
history
diff --git
a/src/tac.c
b/src/tac.c
index
859e006
..
dbfe2b0
100644
(file)
--- a/
src/tac.c
+++ b/
src/tac.c
@@
-666,8
+666,10
@@
main (int argc, char **argv)
ok = false;
}
+#ifdef lint
size_t offset = sentinel_length ? sentinel_length : 1;
free (G_buffer - offset);
+#endif
exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
}