Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
c345ce53
Commit
c345ce53
authored
Aug 13, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_inet_pton: fix memory leak
parent
119a49ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+4
-2
No files found.
src/network/getaddrinfo.c
View file @
c345ce53
...
...
@@ -518,8 +518,8 @@ static WSAAPI int _ws2_getaddrinfo_bind(const char FAR *node, const char FAR *se
if
((
entry
==
NULL
)
||
(
freentry
==
NULL
))
{
/* not found, use replacement API instead */
entry
=
getaddrinfo
;
freentry
=
freeaddrinfo
;
entry
=
getaddrinfo
;
freentry
=
freeaddrinfo
;
}
/* call API before replacing function pointer to avoid crash */
result
=
entry
(
node
,
service
,
hints
,
res
);
...
...
@@ -723,9 +723,11 @@ int vlc_inet_pton (int af, const char *src, void *dst)
break
;
#endif
default:
freeaddrinfo
(
res
);
return
-
1
;
}
memcpy
(
dst
,
data
,
len
);
freeaddrinfo
(
res
);
return
1
;
#else
/* HAVE_INET_PTON */
return
inet_pton
(
af
,
src
,
dst
);
...
...
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