<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13109">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, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_calendar: Resolve memory leak on calendar destruction<br><br>Calling ne_uri_parse allocates memory that needs to be freed with a<br>corresponding call to ne_uri_free.<br><br>ASTERISK-28572 #close<br><br>Change-Id: I8a6834da27000a6807d89cb7a157b2a88fcb5e61<br>---<br>M res/res_calendar_ews.c<br>M res/res_calendar_exchange.c<br>M res/res_calendar_icalendar.c<br>3 files changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_calendar_ews.c b/res/res_calendar_ews.c</span><br><span>index c12fb01..e4d250c 100644</span><br><span>--- a/res/res_calendar_ews.c</span><br><span>+++ b/res/res_calendar_ews.c</span><br><span>@@ -118,6 +118,7 @@</span><br><span> if (pvt->session) {</span><br><span> ne_session_destroy(pvt->session);</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+ ne_uri_free(&pvt->uri);</span><br><span> ast_string_field_free_memory(pvt);</span><br><span> </span><br><span> ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);</span><br><span>diff --git a/res/res_calendar_exchange.c b/res/res_calendar_exchange.c</span><br><span>index 21c1c1a..6d624c1 100644</span><br><span>--- a/res/res_calendar_exchange.c</span><br><span>+++ b/res/res_calendar_exchange.c</span><br><span>@@ -224,6 +224,7 @@</span><br><span> if (pvt->session) {</span><br><span> ne_session_destroy(pvt->session);</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+ ne_uri_free(&pvt->uri);</span><br><span> ast_string_field_free_memory(pvt);</span><br><span> </span><br><span> ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);</span><br><span>diff --git a/res/res_calendar_icalendar.c b/res/res_calendar_icalendar.c</span><br><span>index 4f78f9a..debb55c 100644</span><br><span>--- a/res/res_calendar_icalendar.c</span><br><span>+++ b/res/res_calendar_icalendar.c</span><br><span>@@ -78,6 +78,7 @@</span><br><span> if (pvt->data) {</span><br><span> icalcomponent_free(pvt->data);</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+ ne_uri_free(&pvt->uri);</span><br><span> ast_string_field_free_memory(pvt);</span><br><span> </span><br><span> ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13109">change 13109</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/c/asterisk/+/13109"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 17 </div>
<div style="display:none"> Gerrit-Change-Id: I8a6834da27000a6807d89cb7a157b2a88fcb5e61 </div>
<div style="display:none"> Gerrit-Change-Number: 13109 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>