[OpenSIPS-Devel] [opensips] free disposition pkg_mem when parse_disposition returns parse_errors (-2) (#822)

Bogdan Andrei IANCU notifications at github.com
Mon Mar 7 23:43:27 CET 2016


@jarrodb , thanks for spotting this mem leak. Still, the fix was not correct (on -1 it was doing double free). Also, the correct meaning of the return codes is : -1 is error with no mem allocated ; -2 is error during parsing with mem allocated.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/822#issuecomment-193489565
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160307/319ad036/attachment.htm>


More information about the Devel mailing list