Dear Log4Cxx dev group,

Valgrind found a "delete vs delete[]" mismatch which I have fixed below. 
Please could you apply the down lited patch in the next release?

---
--- log4cxx-0.9.7/src/stringtokenizer.cpp       2004-05-10 14:38:08.000000000 
+0200
+++ log4cxx-0.9.7.gb/src/stringtokenizer.cpp    2007-04-23 16:00:46.000000000 
+0200
@@ -39,7 +39,7 @@

 StringTokenizer::~StringTokenizer()
 {
-       delete this->str;
+       delete[] this->str;
 }

 bool StringTokenizer::hasMoreTokens() const
---


Thanks,
Gerrit Bruchhaeuser

SD "Entertainment & Services"

Phone +49 7248 928 - 0
Fax +49 7248 928 - 499
E-Mail [EMAIL PROTECTED]

http://www.nero.com

NERO - BECAUSE TECHNOLOGY COUNTS
*********************************************************
Nero AG
Im Stoeckmaedle 13-15
76307 Karlsbad
Germany

Vorstand: Richard Lesser (CEO), Kevin Dillon (CFO)
Aufsichtsratvorsitzender/ chairman of the supervisory board: Jim Corbett
Amtsgericht Mannheim HRB 362519
*********************************************************
This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have
received this e-mail in error) please notify the sender
immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
*********************************************************
--- log4cxx-0.9.7/src/stringtokenizer.cpp	2004-05-10 14:38:08.000000000 +0200
+++ log4cxx-0.9.7.gb/src/stringtokenizer.cpp	2007-04-23 16:00:46.000000000 +0200
@@ -39,7 +39,7 @@
 
 StringTokenizer::~StringTokenizer()
 {
-	delete this->str;
+	delete[] this->str;
 }
 
 bool StringTokenizer::hasMoreTokens() const

Reply via email to