[OpenSIPS-Devel] [opensips] F_MALLOC: suppress warnings for free(NULL) (17d639b)

Liviu Chircu notifications at github.com
Mon Jun 15 15:44:10 CEST 2015


the libc free() (man 3 free) allows free'ing NULL pointers. I think the quality of the codebase is improved if we stick to this standard.

Your suggestion is excellent. We definitely have to remove all `if (buf)` tests!

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/commit/17d639b9f11b415d51062005aadb86dd6c2375e2#commitcomment-11680487
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150615/a92c3a74/attachment.htm>


More information about the Devel mailing list