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

Walter Doekes notifications at github.com
Mon Jun 15 15:30:19 CEST 2015


Shouldn't you fix the caller that pkg_free's without checking for NULL instead?

If you "allow" it, then you might as well drop all the `if(buf)` before every `pkg_free(buf)`. Allowing both makes the code inconsistent.

Right?

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


More information about the Devel mailing list