bug-commoncpp
[Top][All Lists]
Advanced

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

Re: [ cplusplus-bug 580197 ] misc.h: ~iterator() delete token


From: Federico Montesino Pouzols
Subject: Re: [ cplusplus-bug 580197 ] misc.h: ~iterator() delete token
Date: Tue, 13 Aug 2002 22:20:06 +0200 (CEST)

  Hi, this is now fixed in the cvs hosted at savannah.


------------------------------------------------------
 virtual ~iterator() { if (token) *token='\0'; delete
token; }

should be delete [] token because token is allocated as
an array in keydata.cpp. A check of keydata.cpp will
show a correct call to delete[] token in operator++.

Probably won't cause a problem because elements of
array are primitive type "char", but a check of the ARM
says behavior is implementation dependent.

Bug is in 1.9.7 and 2.0.99






reply via email to

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