summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-08-28 21:54:17 +0200
committerJim Meyering <meyering@redhat.com>2010-09-01 17:17:31 +0200
commitfc9d948d7e6ff916b3ddb3ed371a6f8aa7f2c624 (patch)
treebff69db677ef50f394e10ec0a0ebabcdab583bef
parent126d59542f89774a4c331a6a52b4c5dce4fce25e (diff)
downloadcoreutils-fc9d948d7e6ff916b3ddb3ed371a6f8aa7f2c624.tar.xz
tac: suppress technically unneeded "free"
* src/tac.c (main): Guard final free with #ifdef lint. Suggested by Paul Eggert.
-rw-r--r--src/tac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tac.c b/src/tac.c
index 859e0067a..dbfe2b0f3 100644
--- 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);
}