[Asterisk-code-review] res pjsip history: Fix multiple leaks on vector append failure. (asterisk[master])
Corey Farrell
asteriskteam at digium.com
Tue Nov 7 11:10:27 CST 2017
Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/7086 )
Change subject: res_pjsip_history: Fix multiple leaks on vector append failure.
......................................................................
Patch Set 1:
(1 comment)
https://gerrit.asterisk.org/#/c/7086/1/res/res_pjsip_history.c
File res/res_pjsip_history.c:
https://gerrit.asterisk.org/#/c/7086/1/res/res_pjsip_history.c@968
PS1, Line 968: /* BUGBUG: possible leak on failure? */
> Seems like to me you'd just want to goto error. Firstly, if it can't append
I was concerned that it_queue might contain an expression_token that this function needed to free, now I see that this function only free's TOKEN_TYPE_RESULT which cannot come from it_queue.
--
To view, visit https://gerrit.asterisk.org/7086
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I41e8d5183ace284095cc721f3b1fb32ade3f940f
Gerrit-Change-Number: 7086
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Tue, 07 Nov 2017 17:10:27 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171107/7a1b70ac/attachment.html>
More information about the asterisk-code-review
mailing list