Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
03889270
Commit
03889270
authored
Feb 19, 2015
by
Simon Morlat
Browse files
fix potential memory leaks
parent
962a9863
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/channel.c
View file @
03889270
...
...
@@ -34,6 +34,7 @@ static void channel_end_recv_background_task(belle_sip_channel_t *obj);
static
void
channel_process_queue
(
belle_sip_channel_t
*
obj
);
static
char
*
make_logbuf
(
belle_sip_log_level
level
,
const
char
*
buffer
,
size_t
size
);
static
void
channel_remove_listener
(
belle_sip_channel_t
*
obj
,
belle_sip_channel_listener_t
*
l
);
static
void
free_ewouldblock_buffer
(
belle_sip_channel_t
*
obj
);
const
char
*
belle_sip_channel_state_to_string
(
belle_sip_channel_state_t
state
){
switch
(
state
){
...
...
@@ -80,6 +81,11 @@ static void belle_sip_channel_destroy(belle_sip_channel_t *obj){
}
if
(
obj
->
public_ip
)
belle_sip_free
(
obj
->
public_ip
);
if
(
obj
->
outgoing_messages
)
belle_sip_list_free_with_data
(
obj
->
outgoing_messages
,
belle_sip_object_unref
);
free_ewouldblock_buffer
(
obj
);
if
(
obj
->
cur_out_message
){
belle_sip_object_unref
(
obj
->
cur_out_message
);
obj
->
cur_out_message
=
NULL
;
}
channel_end_send_background_task
(
obj
);
channel_end_recv_background_task
(
obj
);
/*normally this should do nothing because it sould have been terminated already,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment