Gitweb:        
http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=c9822a13628e72e3ae4f0a63433db5adc18b87ef
Commit:        c9822a13628e72e3ae4f0a63433db5adc18b87ef
Parent:        1f5bce7e43b87f2ef4568a943ea22e599c6f0819
Author:        Laine Stump <[email protected]>
AuthorDate:    Thu Feb 11 10:27:00 2010 -0800
Committer:     David Lutterkort <[email protected]>
CommitterDate: Thu Feb 11 10:27:44 2010 -0800

* src/transform.c (file_info): fix memory leak

---
 AUTHORS         |    1 +
 src/transform.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 0d682a3..d39e506 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -25,4 +25,5 @@ Contributions by:
   Robin Lee Powell            <[email protected]>
   Satoru SATOH                <[email protected]>
   Nahum Shalman               <nshalman elys com>
+  Laine Stump                 <[email protected]>
   Dean Wilson                 <[email protected]>
diff --git a/src/transform.c b/src/transform.c
index 39c3bda..90ce824 100644
--- a/src/transform.c
+++ b/src/transform.c
@@ -581,6 +581,7 @@ static struct tree *file_info(struct augeas *aug, const 
char *fname) {
     result = tree_find(aug, path);
     ERR_BAIL(aug);
  error:
+    free(path);
     return result;
 }
 

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to