[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[aspell-devel] Memory leak bug in common/config.cpp

From: Doug Kwan (關振德)
Subject: [aspell-devel] Memory leak bug in common/config.cpp
Date: Fri, 10 Aug 2007 10:46:55 -0700


     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.


--- 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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]