commit 6799dd8fd4910f9bfa5d62e3243b749600cda4cc
Author: Pádraig Brady <[email protected]>
Date:   Thu Aug 19 00:53:39 2010 +0100

    stat: fix a small mem leak with %N

    * src/stat.c (print_stat): Free the returned buffer
    from areadlink_with_size().

diff --git a/src/stat.c b/src/stat.c
index c3730f0..18a746f 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':

Reply via email to