From: Jim Meyering Date: Thu, 6 Nov 2003 09:28:13 +0000 (+0000) Subject: (main): Free `fstatus' so there is no confusion about X-Git-Tag: v5.1.0~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5aaf05fbfcf36b80e4759ea1f40c37cb1313089;p=thirdparty%2Fcoreutils.git (main): Free `fstatus' so there is no confusion about whether it's leaked or not. --- 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, "-");