[augeas-devel] [PATCH 06 of 11] Free loadpath

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


1 file changed, 1 insertion(+), 4 deletions(-)
src/augparse.c |    5 +----


# HG changeset patch
# User David Lutterkort <dlutter at redhat.com>
# Date 1210881497 25200
# Node ID 69d8a9d1caf128573a314c9e268894f2e89809ef
# Parent  4ecab352c3a7ba3de5431df1754b57e6b69138c9
Free loadpath

Although not strictly necessary, it makes it easier to run augparse through
valgrind and get meaningful results.

diff -r 4ecab352c3a7 -r 69d8a9d1caf1 src/augparse.c
--- a/src/augparse.c	Thu May 15 12:58:07 2008 -0700
+++ b/src/augparse.c	Thu May 15 12:58:17 2008 -0700
@@ -91,10 +91,7 @@ int main(int argc, char **argv) {
         exit(EXIT_FAILURE);
     }
     aug_close(aug);
-    //if (optind + 1 < argc) {
-        //const char *text = aug_read_file(argv[optind+1]);
-        // Run text through some sort of lens
-    //}
+    free(loadpath);
 }
 
 /*




More information about the augeas-devel mailing list