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
82c97d95
Commit
82c97d95
authored
Nov 07, 2012
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlapi: Fix some leaks (coverity).
parent
32f636f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
ifenum.c
dlls/iphlpapi/ifenum.c
+4
-0
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+1
-0
No files found.
dlls/iphlpapi/ifenum.c
View file @
82c97d95
...
...
@@ -741,6 +741,8 @@ DWORD getIPAddrTable(PMIB_IPADDRTABLE *ppIpAddrTable, HANDLE heap, DWORD flags)
ifp
->
ifa_addr
);
i
++
;
}
if
(
ret
)
HeapFree
(
GetProcessHeap
(),
0
,
*
ppIpAddrTable
);
}
else
ret
=
ERROR_OUTOFMEMORY
;
...
...
@@ -928,6 +930,8 @@ DWORD getIPAddrTable(PMIB_IPADDRTABLE *ppIpAddrTable, HANDLE heap, DWORD flags)
&
ifr
->
ifr_addr
);
i
++
;
}
if
(
ret
)
HeapFree
(
GetProcessHeap
(),
0
,
*
ppIpAddrTable
);
}
else
ret
=
ERROR_OUTOFMEMORY
;
...
...
dlls/iphlpapi/iphlpapi_main.c
View file @
82c97d95
...
...
@@ -784,6 +784,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
}
if
(
ret
)
{
HeapFree
(
GetProcessHeap
(),
0
,
v4addrs
);
HeapFree
(
GetProcessHeap
(),
0
,
routeTable
);
return
ret
;
}
...
...
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