Commit Graph

3 Commits

Author SHA1 Message Date
Olly Betts 7ec2f89fe2
Remove redundant NULL checks before free()/delete (#2184)
Remove redundant NULL checks before free()/delete

The ISO C and C++ standards guarantee that it's safe to call these
on a NULL pointer, so it's not necessary for the calling code to
also check.

Fixes https://sourceforge.net/p/swig/feature-requests/70/
2022-01-29 22:03:48 +13:00
Sylvestre Ledru 7dac1bc524 Fix somes typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 09:19:26 +00:00
Thien-Thi Nguyen 4867f7938d Initial revision, contributed by Klaus Wiederaenders.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@1002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2001-01-17 02:19:04 +00:00