[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coreutils] [PATCH] stat: fix a small mem leak with %N
From: |
Pádraig Brady |
Subject: |
[coreutils] [PATCH] stat: fix a small mem leak with %N |
Date: |
Thu, 19 Aug 2010 00:53:02 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
commit 6799dd8fd4910f9bfa5d62e3243b749600cda4cc
Author: Pádraig Brady <address@hidden>
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':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [coreutils] [PATCH] stat: fix a small mem leak with %N,
Pádraig Brady <=