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
621a772d
Commit
621a772d
authored
Jan 06, 2010
by
James Hawkins
Committed by
Alexandre Julliard
Jan 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix a few memory leaks. Use the correct API to free SIDs (FreeSid).
parent
69b0b5e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
security.c
dlls/advapi32/tests/security.c
+5
-4
No files found.
dlls/advapi32/tests/security.c
View file @
621a772d
...
...
@@ -1490,7 +1490,7 @@ static void test_CreateWellKnownSid(void)
}
}
LocalFree
(
domainsid
);
FreeSid
(
domainsid
);
}
static
void
test_LookupAccountSid
(
void
)
...
...
@@ -1812,7 +1812,7 @@ static BOOL get_sid_info(PSID psid, LPSTR *user, LPSTR *dom)
static
void
check_wellknown_name
(
const
char
*
name
,
WELL_KNOWN_SID_TYPE
result
)
{
SID_IDENTIFIER_AUTHORITY
ident
=
{
SECURITY_NT_AUTHORITY
};
PSID
domainsid
;
PSID
domainsid
=
NULL
;
char
wk_sid
[
SECURITY_MAX_SID_SIZE
];
DWORD
cb
;
...
...
@@ -1862,6 +1862,7 @@ static void check_wellknown_name(const char* name, WELL_KNOWN_SID_TYPE result)
ok
(
sid_use
==
SidTypeWellKnownGroup
,
"Expected Use (5), got %d
\n
"
,
sid_use
);
cleanup:
FreeSid
(
domainsid
);
HeapFree
(
GetProcessHeap
(),
0
,
psid
);
HeapFree
(
GetProcessHeap
(),
0
,
domain
);
}
...
...
@@ -2615,8 +2616,8 @@ static void test_SetEntriesInAcl(void)
ok
(
NewAcl
!=
NULL
,
"returned acl was NULL
\n
"
);
LocalFree
(
NewAcl
);
LocalFree
(
UsersSid
);
LocalFree
(
EveryoneSid
);
FreeSid
(
UsersSid
);
FreeSid
(
EveryoneSid
);
HeapFree
(
GetProcessHeap
(),
0
,
OldAcl
);
}
...
...
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