[Asterisk-code-review] bridge softmix: Fix leak on ast stream topology set stream f... (asterisk[15])

Richard Mudgett asteriskteam at digium.com
Tue Nov 7 16:49:14 CST 2017


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/7106 )

Change subject: bridge_softmix: Fix leak on ast_stream_topology_set_stream failure.
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

https://gerrit.asterisk.org/#/c/7106/1/bridges/bridge_softmix.c
File bridges/bridge_softmix.c:

https://gerrit.asterisk.org/#/c/7106/1/bridges/bridge_softmix.c@544
PS1, Line 544: 				if (ast_stream_topology_set_stream(dest, dest_index - 1, clone)) {
This should never fail here because we are always replacing an existing stream.  Replacing a stream does not allocate any memory.

Should add an ast_assert(0) to this failure path.



-- 
To view, visit https://gerrit.asterisk.org/7106
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: comment
Gerrit-Change-Id: I91d25704859efbe50b8b82cfe1cd3c40ba177c9f
Gerrit-Change-Number: 7106
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Tue, 07 Nov 2017 22:49:14 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171107/dd3ba767/attachment.html>


More information about the asterisk-code-review mailing list