[augeas-devel] [PATCH 00 of 11] Misc memory leak fixes

David Lutterkort dlutter at redhat.com
Thu May 15 20:01:50 UTC 2008


These patches address all known memory leaks; now augparse for all the
lens tests and augtool for all the cases I tried run cleanly through
valgrind.

Previously, we leaked on the order of 2MB for simple aug_init/../aug_close
cycles.
9 files changed, 68 insertions(+), 39 deletions(-)
src/augeas.c   |    1 +
src/augparse.c |    5 +----
src/builtin.c  |    5 +++--
src/get.c      |    9 +++++++++
src/parser.y   |   16 +++++++++-------
src/put.c      |   11 +++++------
src/regexp.c   |   22 ++++++++++++++--------
src/syntax.c   |   36 +++++++++++++++++++++++++-----------
src/syntax.h   |    2 +-




More information about the augeas-devel mailing list