[augeas-devel] [PATCH] Eliminate memory leak in file_info().
David Lutterkort
lutter at redhat.com
Thu Feb 11 18:29:19 UTC 2010
On Thu, 2010-02-11 at 00:17 -0500, Laine Stump wrote:
> From: Laine Stump <laine at laine.org>
>
> Found with valgrind + lutter.
>
> The result of pathjoin() was used only as an argument to tree_find(),
> but wasn't being freed before return. Over the course of 12 hours or
> so running the latest virt-manager, this racked up a few hundred MB of
> leaked memory.
>
> A shorter (but still valid) test of 1/2 an hour after applying the fix
> showed no leaks.
ACK .. nice catch. Thanks for the patch.
David
More information about the augeas-devel
mailing list