[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: delete [] 0  (was: Seg Fault in KPanel /KDE_1_1_Branch   (fwd))
From:       "Dirk A. Mueller" <dmuell () gmx ! net>
Date:       1999-07-06 10:48:01
[Download RAW message or body]

iglio@fub.it (Pietro Iglio) wrote:

> 'delete 0', free(0), etc. may lead to portability problems.

ANSI c++ defines the first one is legal. I'm not sure about the second
one.

> Some memory tracking tools, moreover, issue a warning message
> or an error if you free a null pointer.

you can disable that (if you're talking about dmalloc)


-- 
Dirk A. Mueller

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic