Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
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
Administrator
Titanium-Web-Proxy
Commits
78297c2b
Commit
78297c2b
authored
Apr 17, 2018
by
honfika
Committed by
GitHub
Apr 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #414 from antrv/feature/fix-getprocessid
Fix releasing memory in GetProcessIdByLocalPort
parents
b2c145ec
bb202410
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Tcp.cs
Titanium.Web.Proxy/Helpers/Tcp.cs
+2
-3
No files found.
Titanium.Web.Proxy/Helpers/Tcp.cs
View file @
78297c2b
...
@@ -37,11 +37,10 @@ namespace Titanium.Web.Proxy.Helpers
...
@@ -37,11 +37,10 @@ namespace Titanium.Web.Proxy.Helpers
0
)
==
0
)
0
)
==
0
)
{
{
int
rowCount
=
*(
int
*)
tcpTable
;
int
rowCount
=
*(
int
*)
tcpTable
;
tcpTable
+=
4
;
// int size
if
(
ipVersion
==
IpVersion
.
Ipv4
)
if
(
ipVersion
==
IpVersion
.
Ipv4
)
{
{
NativeMethods
.
TcpRow
*
rowPtr
=
(
NativeMethods
.
TcpRow
*)
tcpTable
;
NativeMethods
.
TcpRow
*
rowPtr
=
(
NativeMethods
.
TcpRow
*)
(
tcpTable
+
4
)
;
for
(
int
i
=
0
;
i
<
rowCount
;
++
i
)
for
(
int
i
=
0
;
i
<
rowCount
;
++
i
)
{
{
...
@@ -55,7 +54,7 @@ namespace Titanium.Web.Proxy.Helpers
...
@@ -55,7 +54,7 @@ namespace Titanium.Web.Proxy.Helpers
}
}
else
else
{
{
NativeMethods
.
Tcp6Row
*
rowPtr
=
(
NativeMethods
.
Tcp6Row
*)
tcpTable
;
NativeMethods
.
Tcp6Row
*
rowPtr
=
(
NativeMethods
.
Tcp6Row
*)
(
tcpTable
+
4
)
;
for
(
int
i
=
0
;
i
<
rowCount
;
++
i
)
for
(
int
i
=
0
;
i
<
rowCount
;
++
i
)
{
{
...
...
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