Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
44f95954
Commit
44f95954
authored
Dec 19, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Fix a couple of memory leaks.
Found by Valgrind.
parent
b3511ebb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ntlm.c
dlls/secur32/tests/ntlm.c
+13
-0
No files found.
dlls/secur32/tests/ntlm.c
View file @
44f95954
...
...
@@ -775,6 +775,8 @@ static void testInitializeSecurityContextFlags(void)
tISCFend:
cleanupBuffers
(
&
client
);
pFreeCredentialsHandle
(
client
.
cred
);
HeapFree
(
GetProcessHeap
(),
0
,
client
.
cred
);
HeapFree
(
GetProcessHeap
(),
0
,
client
.
ctxt
);
}
...
...
@@ -911,6 +913,11 @@ tAuthend:
sec_status
=
pFreeCredentialsHandle
(
client
.
cred
);
ok
(
sec_status
==
SEC_E_OK
,
"FreeCredentialsHandle(client) returned %s
\n
"
,
getSecError
(
sec_status
));
HeapFree
(
GetProcessHeap
(),
0
,
client
.
cred
);
HeapFree
(
GetProcessHeap
(),
0
,
client
.
ctxt
);
HeapFree
(
GetProcessHeap
(),
0
,
server
.
cred
);
HeapFree
(
GetProcessHeap
(),
0
,
server
.
ctxt
);
}
static
void
testSignSeal
(
void
)
...
...
@@ -1186,6 +1193,8 @@ end:
HeapFree
(
GetProcessHeap
(),
0
,
data
[
1
].
pvBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
complex_data
[
1
].
pvBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
complex_data
[
3
].
pvBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
server
.
cred
);
HeapFree
(
GetProcessHeap
(),
0
,
server
.
ctxt
);
}
static
void
testAcquireCredentialsHandle
(
void
)
...
...
@@ -1317,6 +1326,8 @@ static void test_cred_multiple_use(void)
ok
(
ret
==
SEC_E_OK
,
"DeleteSecurityContext failed with error 0x%x
\n
"
,
ret
);
ret
=
pFreeCredentialsHandle
(
&
cred
);
ok
(
ret
==
SEC_E_OK
,
"FreeCredentialsHandle failed with error 0x%x
\n
"
,
ret
);
HeapFree
(
GetProcessHeap
(),
0
,
buffers
[
0
].
pvBuffer
);
}
static
void
test_null_auth_data
(
void
)
...
...
@@ -1358,6 +1369,8 @@ static void test_null_auth_data(void)
ISC_REQ_CONNECTION
,
0
,
SECURITY_NETWORK_DREP
,
NULL
,
0
,
&
ctx
,
&
buffer_desc
,
&
attr
,
&
ttl
);
ok
(
status
==
SEC_I_CONTINUE_NEEDED
,
"InitializeSecurityContextA failed %s
\n
"
,
getSecError
(
status
));
HeapFree
(
GetProcessHeap
(),
0
,
buffers
[
0
].
pvBuffer
);
}
START_TEST
(
ntlm
)
...
...
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