<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8526">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">core: Fix MALLOC_DEBUG version of __ast_vasprintf.<br><br>When MALLOC_DEBUG is enabled and __ast_vasprintf fails to allocate<br>memory it called va_end(ap). This is incorrect as ap is passed as<br>an argument, __ast_vasprintf does not use va_start so it should not<br>use va_end.<br><br>Change-Id: I9f27ced4ce3cbe4b39547a67f994fdff491978c0<br>---<br>M main/astmm.c<br>1 file changed, 0 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/8526/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/astmm.c b/main/astmm.c<br>index 59baa42..d50c57a 100644<br>--- a/main/astmm.c<br>+++ b/main/astmm.c<br>@@ -664,7 +664,6 @@<br> size = vsnprintf(&s, 1, fmt, ap2);<br> va_end(ap2);<br> if (!(*strp = __ast_alloc_region(size + 1, FUNC_VASPRINTF, file, lineno, func, 0))) {<br>- va_end(ap);<br> return -1;<br> }<br> vsnprintf(*strp, size + 1, fmt, ap);<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8526">change 8526</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/8526"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9f27ced4ce3cbe4b39547a67f994fdff491978c0 </div>
<div style="display:none"> Gerrit-Change-Number: 8526 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>