Mailinglist Archive: zypp-commit (119 mails)
| < Previous | Next > |
[zypp-commit] <zypper> master : Fixed memory leak.
- From: Ján Kupec <jkupec@xxxxxxx>
- Date: Fri, 20 Mar 2009 14:29:33 +0100
- Message-id: <E1LpRXI-0000r0-8V@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit cd49c03cda6603f4b31d21f3f785b3026d7750ff
Author: Ján Kupec <jkupec@xxxxxxx>
Date: Fri Mar 20 14:29:33 2009 +0100
Fixed memory leak.
---
src/utils/Augeas.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/utils/Augeas.cc b/src/utils/Augeas.cc
index 1966c04..d1d7578 100644
--- a/src/utils/Augeas.cc
+++ b/src/utils/Augeas.cc
@@ -166,6 +166,8 @@ TriBool Augeas::isCommented(
result = false;
DBG << result << endl;
}
+ for (int i = 0; i < matchcount; ++i)
+ ::free(matches[i]);
if (matchcount)
::free(matches);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
commit cd49c03cda6603f4b31d21f3f785b3026d7750ff
Author: Ján Kupec <jkupec@xxxxxxx>
Date: Fri Mar 20 14:29:33 2009 +0100
Fixed memory leak.
---
src/utils/Augeas.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/utils/Augeas.cc b/src/utils/Augeas.cc
index 1966c04..d1d7578 100644
--- a/src/utils/Augeas.cc
+++ b/src/utils/Augeas.cc
@@ -166,6 +166,8 @@ TriBool Augeas::isCommented(
result = false;
DBG << result << endl;
}
+ for (int i = 0; i < matchcount; ++i)
+ ::free(matches[i]);
if (matchcount)
::free(matches);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
| < Previous | Next > |