Skip to content
GitLab
Menu
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
3e2adfbc
Commit
3e2adfbc
authored
Jan 08, 2016
by
Xenofon Foukas
Browse files
Fixed bug to allocate memory in the stack instead of dynamically for the timer search key
parent
11b2f829
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/ENB_APP/enb_agent_common.c
View file @
3e2adfbc
...
...
@@ -470,10 +470,11 @@ err_code_t enb_agent_destroy_timers(void){
struct
enb_agent_timer_element_s
*
get_timer_entry
(
long
timer_id
)
{
struct
enb_agent_timer_element_s
*
search
=
calloc
(
1
,
sizeof
(
*
search
));
search
->
timer_id
=
timer_id
;
struct
enb_agent_timer_element_s
search
;
memset
(
&
search
,
0
,
sizeof
(
struct
enb_agent_timer_element_s
));
search
.
timer_id
=
timer_id
;
return
RB_FIND
(
enb_agent_map
,
&
timer_instance
.
enb_agent_head
,
search
);
return
RB_FIND
(
enb_agent_map
,
&
timer_instance
.
enb_agent_head
,
&
search
);
}
void
enb_agent_sleep_until
(
struct
timespec
*
ts
,
int
delay
)
{
...
...
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