<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6795">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ast_bt_get_symbols: Prevent double-free.<br><br>It's possible for bfdobj to be created but syms not created. If syms<br>was not allocated in the current loop iteration but was allocated in the<br>previous iteration it would crash.<br><br>ASTERISK-27340<br><br>Change-Id: I5b110c609f6dfe91339f782a99a431bca5837363<br>---<br>M main/backtrace.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/95/6795/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/backtrace.c b/main/backtrace.c<br>index a115646..1659890 100644<br>--- a/main/backtrace.c<br>+++ b/main/backtrace.c<br>@@ -173,6 +173,7 @@<br> if (bfdobj) {<br> bfd_close(bfdobj);<br> ast_std_free(syms);<br>+ syms = NULL;<br> }<br> <br> /* Default output, if we cannot find the information within BFD */<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6795">change 6795</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/6795"/><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: I5b110c609f6dfe91339f782a99a431bca5837363 </div>
<div style="display:none"> Gerrit-Change-Number: 6795 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>