Memory leak bug in common/config.cpp
"Doug Kwan (關振德)" <[email protected]> Fri, 10 Aug 2007 10:46:55 -0700
| Newsgroups | gmane.comp.gnu.aspell.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I found this bug in common/config.cpp. It looks like a
copy-and-page error from code above. There is another loop above this
that delete a linked link whose head is first_. I believe the broken
code was copied from there.
-Doug
--- config.cpp.orig 2007-08-09 00:35:48.000000000 -0700
+++ config.cpp 2007-08-10 10:19:15.000000000 -0700
@@ -181,7 +181,7 @@
while (others_) {
Entry * tmp = others_->next;
- delete first_;
+ delete other_;
others_ = tmp;
}