<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/9970">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/9970/1/main/manager.c">File main/manager.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9970/1/main/manager.c@7798">Patch Set #1, Line 7798:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">       for (v = params; v && m.hdrcount < ARRAY_LEN(m.headers); v = v->next) {<br>         hdrlen = strlen(v->name) + strlen(v->value) + 3;<br>                m.headers[m.hdrcount] = ast_malloc(hdrlen);<br>           if (!m.headers[m.hdrcount]) {<br>                 /* Allocation failure */<br>                      continue;<br>             }<br>             snprintf((char *) m.headers[m.hdrcount], hdrlen, "%s: %s", v->name, v->value);<br>                ast_debug(1, "HTTP Manager add header %s\n", m.headers[m.hdrcount]);<br>                ++m.hdrcount;<br> }<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">These blocks are now identical (except for the debug level) so probably better to extract into a separate function.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9970/1/main/manager.c@7823">Patch Set #1, Line 7823:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">     /* Free request headers. */<br>   for (idx = 0; idx < m.hdrcount; ++idx) {<br>           ast_free((void *) m.headers[idx]);<br>            m.headers[idx] = NULL;<br>        }<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/9970">change 9970</a>. To unsubscribe, or for help writing mail filters, 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/9970"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ic45e673fde05bd544be95ad5cdbc69518207c1a1 </div>
<div style="display:none"> Gerrit-Change-Number: 9970 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 20 Aug 2018 13:41:53 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>