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
fc36c5eb
Commit
fc36c5eb
authored
Aug 26, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Fix some memory leaks.
parent
15bc45a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ipstats.c
dlls/iphlpapi/ipstats.c
+4
-2
No files found.
dlls/iphlpapi/ipstats.c
View file @
fc36c5eb
...
@@ -2197,7 +2197,7 @@ DWORD build_tcp_table( TCP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
...
@@ -2197,7 +2197,7 @@ DWORD build_tcp_table( TCP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
size_t
Len
=
0
;
size_t
Len
=
0
;
char
*
Buf
=
NULL
;
char
*
Buf
=
NULL
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
struct
pid_map
*
pMap
;
struct
pid_map
*
pMap
=
NULL
;
unsigned
NumEntries
;
unsigned
NumEntries
;
if
(
sysctlbyname
(
"net.inet.tcp.pcblist"
,
NULL
,
&
Len
,
NULL
,
0
)
<
0
)
if
(
sysctlbyname
(
"net.inet.tcp.pcblist"
,
NULL
,
&
Len
,
NULL
,
0
)
<
0
)
...
@@ -2280,6 +2280,7 @@ DWORD build_tcp_table( TCP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
...
@@ -2280,6 +2280,7 @@ DWORD build_tcp_table( TCP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
}
}
done:
done:
HeapFree
(
GetProcessHeap
(),
0
,
pMap
);
HeapFree
(
GetProcessHeap
(),
0
,
Buf
);
HeapFree
(
GetProcessHeap
(),
0
,
Buf
);
}
}
#else
#else
...
@@ -2471,7 +2472,7 @@ DWORD build_udp_table( UDP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
...
@@ -2471,7 +2472,7 @@ DWORD build_udp_table( UDP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
size_t
Len
=
0
;
size_t
Len
=
0
;
char
*
Buf
=
NULL
;
char
*
Buf
=
NULL
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
struct
pid_map
*
pMap
;
struct
pid_map
*
pMap
=
NULL
;
unsigned
NumEntries
;
unsigned
NumEntries
;
if
(
sysctlbyname
(
"net.inet.udp.pcblist"
,
NULL
,
&
Len
,
NULL
,
0
)
<
0
)
if
(
sysctlbyname
(
"net.inet.udp.pcblist"
,
NULL
,
&
Len
,
NULL
,
0
)
<
0
)
...
@@ -2547,6 +2548,7 @@ DWORD build_udp_table( UDP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
...
@@ -2547,6 +2548,7 @@ DWORD build_udp_table( UDP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
}
}
done:
done:
HeapFree
(
GetProcessHeap
(),
0
,
pMap
);
HeapFree
(
GetProcessHeap
(),
0
,
Buf
);
HeapFree
(
GetProcessHeap
(),
0
,
Buf
);
}
}
#else
#else
...
...
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