<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7055">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjproject: Handle error from adding to the buildopts vector.<br><br>Change-Id: I076c7bd207c7989a23005395ce1735392657be65<br>---<br>M res/res_pjproject.c<br>1 file changed, 6 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjproject.c b/res/res_pjproject.c<br>index 46c82aa..86b2502 100644<br>--- a/res/res_pjproject.c<br>+++ b/res/res_pjproject.c<br>@@ -227,11 +227,16 @@<br> <br> static void capture_buildopts_cb(int level, const char *data, int len)<br> {<br>+       char *dup;<br>+<br>         if (strstr(data, "Teluu") || strstr(data, "Dumping")) {<br>           return;<br>       }<br> <br>- AST_VECTOR_ADD_SORTED(&buildopts, ast_strdup(ast_skip_blanks(data)), strcmp);<br>+    dup = ast_strdup(ast_skip_blanks(data));<br>+     if (AST_VECTOR_ADD_SORTED(&buildopts, dup, strcmp)) {<br>+            ast_free(dup);<br>+       }<br> }<br> <br> #pragma GCC diagnostic ignored "-Wformat-nonliteral"<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7055">change 7055</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/7055"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I076c7bd207c7989a23005395ce1735392657be65 </div>
<div style="display:none"> Gerrit-Change-Number: 7055 </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: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>