summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-06 09:28:13 +0000
committerJim Meyering <jim@meyering.net>2003-11-06 09:28:13 +0000
commita5aaf05fbfcf36b80e4759ea1f40c37cb1313089 (patch)
tree72ebae52adc807ecab291329159e9953b034af08
parentc1f33f59f59af314aeb898e1c8d267dd5d808171 (diff)
downloadcoreutils-a5aaf05fbfcf36b80e4759ea1f40c37cb1313089.tar.xz
(main): Free `fstatus' so there is no confusion about
whether it's leaked or not.
-rw-r--r--src/wc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wc.c b/src/wc.c
index 061b46500..b19a9c28b 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, "-");