[augeas-devel] augeas: master - * src/transform.c (file_info): fix memory leak
David Lutterkort
lutter at fedoraproject.org
Thu Feb 11 18:28:53 UTC 2010
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=c9822a13628e72e3ae4f0a63433db5adc18b87ef
Commit: c9822a13628e72e3ae4f0a63433db5adc18b87ef
Parent: 1f5bce7e43b87f2ef4568a943ea22e599c6f0819
Author: Laine Stump <laine at laine.org>
AuthorDate: Thu Feb 11 10:27:00 2010 -0800
Committer: David Lutterkort <lutter at redhat.com>
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 <rlpowell at digitalkingdom.org>
Satoru SATOH <satoru.satoh at gmail.com>
Nahum Shalman <nshalman elys com>
+ Laine Stump <laine at laine.org>
Dean Wilson <dwilson at blueowl.it>
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;
}
More information about the augeas-devel
mailing list