mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
fix mem leak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7308 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d4a2ab28a9
commit
e7d29df822
@ -481,7 +481,7 @@ static switch_status_t read_packet(listener_t * listener, switch_event_t **event
|
|||||||
switch_xml_free(xml);
|
switch_xml_free(xml);
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "XML ERROR!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "XML ERROR!\n");
|
||||||
continue;
|
goto endloop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -496,6 +496,9 @@ static switch_status_t read_packet(listener_t * listener, switch_event_t **event
|
|||||||
switch_socket_send(listener->sock, listener->ebuf, &len);
|
switch_socket_send(listener->sock, listener->ebuf, &len);
|
||||||
|
|
||||||
switch_safe_free(listener->ebuf);
|
switch_safe_free(listener->ebuf);
|
||||||
|
|
||||||
|
endloop:
|
||||||
|
switch_event_destroy(&pevent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user