tac: don't leak a file descriptor for each non-seekable input
commit866844826c3274d1ca8487aaa23dbc3b55c4fa59
authorJim Meyering <meyering@redhat.com>
Sun, 16 Oct 2011 10:14:05 +0000 (16 12:14 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 17 Oct 2011 15:44:54 +0000 (17 17:44 +0200)
tree4afcc86c6f2370fbf40d718efa590743eaa2d88f
parent537f9da37fa396af72d8b3e6af274e0bcbeab794
tac: don't leak a file descriptor for each non-seekable input

* src/tac.c (tac_nonseekable): Call fclose and free tmp_file after
each successful call to copy_to_temp.
src/tac.c