From: Pádraig Brady
Date: Wed, 18 Aug 2010 23:53:39 +0000 (+0100) Subject: stat: fix a small memory leak with %N X-Git-Tag: v8.6~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ed90c4c9dca45ca266f4d5d25b6bac982765004;p=thirdparty%2Fcoreutils.git stat: fix a small memory leak with %N * src/stat.c (print_stat): Free the buffer returned from areadlink_with_size(). --- diff --git a/src/stat.c b/src/stat.c index c3730f0b16..18a746f970 100644 --- a/src/stat.c +++ b/src/stat.c @@ -632,6 +632,7 @@ print_stat (char *pformat, size_t prefix_len, char m, } printf (" -> "); out_string (pformat, prefix_len, quote (linkname)); + free (linkname); } break; case 'd':