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
91a767d7
Commit
91a767d7
authored
Oct 03, 2012
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Free wstr in error case to avoid leak (Coverity).
parent
b78744ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
security.c
dlls/advapi32/security.c
+12
-4
No files found.
dlls/advapi32/security.c
View file @
91a767d7
...
...
@@ -4861,17 +4861,25 @@ BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(PSECURITY_DESCR
wstr
=
wptr
=
LocalAlloc
(
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
if
(
RequestedInformation
&
OWNER_SECURITY_INFORMATION
)
if
(
!
DumpOwner
(
SecurityDescriptor
,
&
wptr
,
NULL
))
if
(
!
DumpOwner
(
SecurityDescriptor
,
&
wptr
,
NULL
))
{
LocalFree
(
wstr
);
return
FALSE
;
}
if
(
RequestedInformation
&
GROUP_SECURITY_INFORMATION
)
if
(
!
DumpGroup
(
SecurityDescriptor
,
&
wptr
,
NULL
))
if
(
!
DumpGroup
(
SecurityDescriptor
,
&
wptr
,
NULL
))
{
LocalFree
(
wstr
);
return
FALSE
;
}
if
(
RequestedInformation
&
DACL_SECURITY_INFORMATION
)
if
(
!
DumpDacl
(
SecurityDescriptor
,
&
wptr
,
NULL
))
if
(
!
DumpDacl
(
SecurityDescriptor
,
&
wptr
,
NULL
))
{
LocalFree
(
wstr
);
return
FALSE
;
}
if
(
RequestedInformation
&
SACL_SECURITY_INFORMATION
)
if
(
!
DumpSacl
(
SecurityDescriptor
,
&
wptr
,
NULL
))
if
(
!
DumpSacl
(
SecurityDescriptor
,
&
wptr
,
NULL
))
{
LocalFree
(
wstr
);
return
FALSE
;
}
*
wptr
=
0
;
TRACE
(
"ret: %s, %d
\n
"
,
wine_dbgstr_w
(
wstr
),
len
);
...
...
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