Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
6a357853
Commit
6a357853
authored
Dec 12, 2013
by
Cédric Roux
Browse files
- Fix memory leak
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@4697
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
c1ac956e
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/itti/intertask_interface.c
View file @
6a357853
...
...
@@ -190,7 +190,7 @@ void *itti_malloc(task_id_t task_id, ssize_t size)
ptr
=
malloc
(
size
);
#endif
DevCheck
(
ptr
!=
NULL
,
ptr
,
size
,
task_id
);
DevCheck
(
ptr
!=
NULL
,
size
,
task_id
,
0
);
return
ptr
;
}
...
...
@@ -432,6 +432,9 @@ int itti_send_msg_to_task(task_id_t destination_task_id, instance_t instance, Me
destination_task_id
,
itti_get_task_name
(
destination_task_id
));
}
}
else
{
/* This is a debug message to TASK_UNKNOWN, we can release safely release it */
itti_free
(
origin_task_id
,
message
);
}
#if defined(OAI_EMU) || defined(RTAI)
...
...
@@ -459,7 +462,8 @@ void itti_subscribe_event_fd(task_id_t task_id, int fd)
itti_desc
.
threads
[
thread_id
].
nb_events
*
sizeof
(
struct
epoll_event
));
event
.
events
=
EPOLLIN
|
EPOLLERR
;
event
.
data
.
fd
=
fd
;
event
.
data
.
u64
=
0
;
event
.
data
.
fd
=
fd
;
/* Add the event fd to the list of monitored events */
if
(
epoll_ctl
(
itti_desc
.
threads
[
thread_id
].
epoll_fd
,
EPOLL_CTL_ADD
,
fd
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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