tail: free tailbuf upon cleaning up
authorAlexander Shishkin <virtuoso@slind.org>
Wed, 20 Oct 2010 22:25:45 +0000 (00:25 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 20 Oct 2010 22:25:45 +0000 (00:25 +0200)
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/tail.c

index 44698f304d38e575e30e9b7a95241387f0be5755..df881a37a19263c94b59800a6a856e7c5766672f 100644 (file)
@@ -346,6 +346,7 @@ int tail_main(int argc, char **argv)
        }
        if (ENABLE_FEATURE_CLEAN_UP) {
                free(fds);
+               free(tailbuf);
        }
        return G.status;
 }