[aspectc-user] Deletion of unnecessary null pointer checks?

Olaf Spinczyk os at aspectc.org
Mon Nov 21 18:12:43 CET 2011


Hi!

Yes, we would like to get rid of unnecessary checks, but it is not 
straightforward, because there are user-defined new and delete operators 
in Puma.

Regards,

Olaf


On 10/30/2011 09:58 PM, Markus Elfring wrote:
> Hello!
>
> I have found a few places in the source files where a null pointer check is used before a call of the operator "delete[]" (e. g. in destructors).
>
> Examples:
> - ACConfig.cc
> - PreAnswer.cc
> - Project.cc
>
> Would you like to omit such an extra check?
>
> http://stackoverflow.com/questions/615355/is-there-any-reason-to-check-for-a-null-pointer-before-deleting
> http://dietmar-kuehl.de/mirror/c++-faq/freestore-mgmt.html#faq-16.8
>
> Regards,
> Markus
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>
>    




More information about the aspectc-user mailing list