[PATCH]setup.exe: delete called for NULL pointer

Michael A Chase mchase@ix.netcom.com
Wed Apr 10 14:55:00 GMT 2002

I don't know, but many other places where it is called, it's protected by
   if (var)
      delete[] var;
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Pavel Tsekov" <ptsekov@gmx.net>
To: "Michael A Chase" <mchase@ix.netcom.com>
Cc: <cygwin-patches@cygwin.com>
Sent: Wednesday, April 10, 2002 13:01
Subject: Re: [PATCH]setup.exe: delete called for NULL pointer

> Wednesday, April 10, 2002, 7:20:30 PM, you wrote:
> MAC> I don't know if this delete call is a problem, but every other place
I found
> MAC> delete called in the setup.exe source, the variable was either
confirmed not
> MAC> NULL or the variable was certain to not be NULL.  In this case, the
> MAC> either must be NULL or the buffer is too small.
> Isn't the 'delete' operator NULL aware ?

More information about the Cygwin-patches mailing list