Merge "res_calendar: Resolve memory leak on calendar destruction" into 16

This commit is contained in:
Joshua Colp 2019-10-29 10:24:27 -05:00 committed by Gerrit Code Review
commit 80a28170b5
3 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,7 @@ static void ewscal_destructor(void *obj)
if (pvt->session) {
ne_session_destroy(pvt->session);
}
ne_uri_free(&pvt->uri);
ast_string_field_free_memory(pvt);
ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);

View File

@ -224,6 +224,7 @@ static void exchangecal_destructor(void *obj)
if (pvt->session) {
ne_session_destroy(pvt->session);
}
ne_uri_free(&pvt->uri);
ast_string_field_free_memory(pvt);
ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);

View File

@ -78,6 +78,7 @@ static void icalendar_destructor(void *obj)
if (pvt->data) {
icalcomponent_free(pvt->data);
}
ne_uri_free(&pvt->uri);
ast_string_field_free_memory(pvt);
ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);