Gitweb:
http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=343d3ab571aa78cf8a4101cc2a86d9e4a2841a2f
Commit: 343d3ab571aa78cf8a4101cc2a86d9e4a2841a2f
Parent: 5da91b6f0511db5107c643bf7863701d66b75cab
Author: David Lutterkort <[email protected]>
AuthorDate: Fri Jun 12 15:40:22 2009 -0700
Committer: David Lutterkort <[email protected]>
CommitterDate: Fri Sep 18 14:47:51 2009 -0700
* src/syntax.c (interpreter_init): fix potential leak
If globbuf has entries in it when we encounter an error, we need to
globfree it.
---
src/syntax.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/syntax.c b/src/syntax.c
index 9c643f8..fd8b472 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1969,7 +1969,7 @@ int interpreter_init(struct augeas *aug) {
globfree(&globbuf);
return 0;
error:
- FIXME("Cleanup loaded modules");
+ globfree(&globbuf);
return -1;
}
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel