<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7072">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
George Joseph: Looks good to me, but someone else must approve
Richard Mudgett: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_stasis_playback: Check for failure to append vector.<br><br>Free resources and return error if we fail to append the vector in<br>stasis_app_control_play_uri.<br><br>Change-Id: I22c4a90dd859b253f2850c6511de48b25609422b<br>---<br>M res/res_stasis_playback.c<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_stasis_playback.c b/res/res_stasis_playback.c<br>index c6f2136..ca0446b 100644<br>--- a/res/res_stasis_playback.c<br>+++ b/res/res_stasis_playback.c<br>@@ -497,7 +497,11 @@<br> <br> /* safe */<br> strcpy(media_uri, media[i]);<br>- AST_VECTOR_APPEND(&playback->medias, media_uri);<br>+ if (AST_VECTOR_APPEND(&playback->medias, media_uri)) {<br>+ ao2_ref(playback, -1);<br>+ ast_free(media_uri);<br>+ return NULL;<br>+ }<br> }<br> <br> if (skipms == 0) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7072">change 7072</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7072"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I22c4a90dd859b253f2850c6511de48b25609422b </div>
<div style="display:none"> Gerrit-Change-Number: 7072 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>