From a5aaf05fbfcf36b80e4759ea1f40c37cb1313089 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 Nov 2003 09:28:13 +0000 Subject: [PATCH] (main): Free `fstatus' so there is no confusion about whether it's leaked or not. --- src/wc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wc.c b/src/wc.c index 061b465004..b19a9c28b5 100644 --- a/src/wc.c +++ b/src/wc.c @@ -674,6 +674,8 @@ main (int argc, char **argv) max_line_length, _("total")); } + free (fstatus); + if (have_read_stdin && close (STDIN_FILENO) != 0) error (EXIT_FAILURE, errno, "-"); -- 2.47.2