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
promise
OpenXG-RAN
Commits
7a7c2afa
Commit
7a7c2afa
authored
Mar 06, 2019
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle cppcheck errors in ASYNC_IF
parent
66d4c4e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
openair2/UTIL/ASYNC_IF/socket_link.c
openair2/UTIL/ASYNC_IF/socket_link.c
+5
-3
No files found.
openair2/UTIL/ASYNC_IF/socket_link.c
View file @
7a7c2afa
...
...
@@ -222,7 +222,7 @@ socket_link_t *new_link_udp_client(const char *server, int port){
ret
=
calloc
(
1
,
sizeof
(
socket_link_t
));
if
(
ret
==
NULL
)
{
LOG_E
(
MAC
,
"%s:%d: out of memory
\n
"
,
__FILE__
,
__LINE__
);
//
goto error;
goto
error
;
}
ret
->
socket_fd
=
-
1
;
...
...
@@ -253,8 +253,10 @@ socket_link_t *new_link_udp_client(const char *server, int port){
return
ret
;
error:
if
(
ret
!=
NULL
)
close
(
ret
->
socket_fd
);
if
(
ret
!=
NULL
)
{
close
(
ret
->
socket_fd
);
free
(
ret
);
}
LOG_E
(
MAC
,
"ERROR in new_link_udp_client (see above), returning NULL
\n
"
);
return
NULL
;
}
...
...
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