Re: htdig: delete [] shoud be used instead of delete alone in some places


Joe R. Jah (jjah@cloud.ccsf.cc.ca.us)
Mon, 23 Mar 1998 09:28:25 -0800 (PST)


On Mon, 23 Mar 1998, Stephan Muehlstrasser wrote:

> Date: Mon, 23 Mar 1998 16:04:52 +0100
> From: Stephan Muehlstrasser <smuehlst@Rational.Com>
> To: htdig@sdsu.edu
> Cc: Stephan Muehlstrasser <smuehlst@Rational.Com>
> Subject: htdig: delete [] shoud be used instead of delete alone in some places
>
> Hi there,
>
> I found some places in the source code of htdig-3.0.8b2 where the wrong
> delete without [] is used for allocated arrays. This does not expose an
> actual problem on my platform (Solaris, gcc-2.7.2) where I'm using
> htdig, but it could be a problem for ports to other platforms/compilers.
> I also added some deletes for fixing memory leaks.

Curious! Why were the deletes you added without []?

Joe

     _/ _/_/_/ _/ ____________ __o
     _/ _/ _/ _/ ______________ _-\<,_
 _/ _/ _/_/_/ _/ _/ ......(_)/ (_)
  _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:25:50 PST