From 2ed90c4c9dca45ca266f4d5d25b6bac982765004 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 19 Aug 2010 00:53:39 +0100 Subject: stat: fix a small memory leak with %N * src/stat.c (print_stat): Free the buffer returned from areadlink_with_size(). --- src/stat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/stat.c b/src/stat.c index c3730f0b1..18a746f97 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': -- cgit v1.2.3-70-g09d2