Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d2771a1d
Commit
d2771a1d
authored
Oct 18, 2014
by
Luca Barbato
Committed by
Vittorio Giovara
Oct 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpproto: Free the addrinfo pointer on failure
CC: libav-stable@libav.org Bug-Id: CID 1238797
parent
96bfb677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
rtpproto.c
libavformat/rtpproto.c
+3
-1
No files found.
libavformat/rtpproto.c
View file @
d2771a1d
...
...
@@ -231,8 +231,10 @@ static void rtp_parse_addr_list(URLContext *h, char *buf,
ai
=
rtp_resolve_host
(
p
,
0
,
SOCK_DGRAM
,
AF_UNSPEC
,
0
);
if
(
ai
)
{
source_addr
=
av_mallocz
(
sizeof
(
struct
sockaddr_storage
));
if
(
!
source_addr
)
if
(
!
source_addr
)
{
freeaddrinfo
(
ai
);
break
;
}
memcpy
(
source_addr
,
ai
->
ai_addr
,
ai
->
ai_addrlen
);
freeaddrinfo
(
ai
);
...
...
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