Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
2cfb5aa9
Commit
2cfb5aa9
authored
Apr 03, 2020
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix segfault when free memory in vnf_p7
parent
d1d9e475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
nfapi/open-nFAPI/vnf/src/vnf_p7.c
nfapi/open-nFAPI/vnf/src/vnf_p7.c
+3
-1
No files found.
nfapi/open-nFAPI/vnf/src/vnf_p7.c
View file @
2cfb5aa9
...
@@ -290,9 +290,9 @@ void vnf_p7_rx_reassembly_queue_remove_old_msgs(vnf_p7_t* vnf_p7, vnf_p7_rx_reas
...
@@ -290,9 +290,9 @@ void vnf_p7_rx_reassembly_queue_remove_old_msgs(vnf_p7_t* vnf_p7, vnf_p7_rx_reas
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"Deleting stale reassembly message (%u %u %d)
\n
"
,
iterator
->
rx_hr_time
,
rx_hr_time
,
delta
);
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"Deleting stale reassembly message (%u %u %d)
\n
"
,
iterator
->
rx_hr_time
,
rx_hr_time
,
delta
);
iterator
=
iterator
->
next
;
#ifndef PHY_RM
#ifndef PHY_RM
vnf_p7_rx_message_t
*
to_delete
=
iterator
;
vnf_p7_rx_message_t
*
to_delete
=
iterator
;
iterator
=
iterator
->
next
;
// delete the message
// delete the message
uint16_t
i
;
uint16_t
i
;
for
(
i
=
0
;
i
<
128
;
++
i
)
for
(
i
=
0
;
i
<
128
;
++
i
)
...
@@ -302,6 +302,8 @@ void vnf_p7_rx_reassembly_queue_remove_old_msgs(vnf_p7_t* vnf_p7, vnf_p7_rx_reas
...
@@ -302,6 +302,8 @@ void vnf_p7_rx_reassembly_queue_remove_old_msgs(vnf_p7_t* vnf_p7, vnf_p7_rx_reas
}
}
vnf_p7_free
(
vnf_p7
,
to_delete
);
vnf_p7_free
(
vnf_p7
,
to_delete
);
to_delete
=
0
;
to_delete
=
0
;
#else
iterator
=
iterator
->
next
;
#endif
#endif
}
}
else
else
...
...
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