mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
FS-3334 --resolve libdingaling this was a small leak
This commit is contained in:
parent
e2ed8c08ef
commit
d3ea42d82a
@ -1908,6 +1908,8 @@ void ldl_handle_send_msg(ldl_handle_t *handle, char *from, char *to, const char
|
||||
int on = 0;
|
||||
int len = 0;
|
||||
char *my_body = strdup(body);
|
||||
char *my_body_base = my_body;
|
||||
|
||||
assert(handle != NULL);
|
||||
assert(body != NULL);
|
||||
|
||||
@ -1952,7 +1954,9 @@ void ldl_handle_send_msg(ldl_handle_t *handle, char *from, char *to, const char
|
||||
free(bdup);
|
||||
}
|
||||
|
||||
free(my_body);
|
||||
if (my_body_base) {
|
||||
free(my_body_base);
|
||||
}
|
||||
|
||||
apr_queue_push(handle->queue, msg);
|
||||
msg = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user