Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
faa14ba1
Commit
faa14ba1
authored
Sep 07, 2015
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: fix memleak in error exit (Coverity).
parent
d04324f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
list.c
dlls/netprofm/list.c
+5
-1
No files found.
dlls/netprofm/list.c
View file @
faa14ba1
...
@@ -1681,7 +1681,11 @@ static void init_networks( struct list_manager *mgr )
...
@@ -1681,7 +1681,11 @@ static void init_networks( struct list_manager *mgr )
if
(
ret
!=
ERROR_BUFFER_OVERFLOW
)
return
;
if
(
ret
!=
ERROR_BUFFER_OVERFLOW
)
return
;
if
(
!
(
buf
=
heap_alloc
(
size
)))
return
;
if
(
!
(
buf
=
heap_alloc
(
size
)))
return
;
if
(
GetAdaptersAddresses
(
WS_AF_UNSPEC
,
flags
,
NULL
,
buf
,
&
size
))
return
;
if
(
GetAdaptersAddresses
(
WS_AF_UNSPEC
,
flags
,
NULL
,
buf
,
&
size
))
{
heap_free
(
buf
);
return
;
}
memset
(
&
id
,
0
,
sizeof
(
id
)
);
memset
(
&
id
,
0
,
sizeof
(
id
)
);
for
(
aa
=
buf
;
aa
;
aa
=
aa
->
Next
)
for
(
aa
=
buf
;
aa
;
aa
=
aa
->
Next
)
...
...
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