fix some mem leaks

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9329 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2008-08-20 19:10:04 +00:00
1 parent 8bece18e26
commit a8d457eb09
2 files changed
+12 -4

No files matched your search

+5 -1
View File
@@ -1093,7 +1093,11 @@ SWITCH_DECLARE(switch_status_t) switch_event_unbind_callback(switch_event_callba
EVENT_NODES[n->event_id] = n->next;
}
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Event Binding deleted for %s:%s\n", n->id, switch_event_name(n->event_id));
n->subclass = NULL;
if (n->subclass) {
FREE(n->subclass->owner);
FREE(n->subclass->name);
FREE(n->subclass);
}
FREE(n->id);
FREE(n);
status = SWITCH_STATUS_SUCCESS;