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
992ec949
Commit
992ec949
authored
May 08, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
May 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activeds: Free memory on error paths (coverity).
parent
820a9d0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
pathname.c
dlls/activeds/pathname.c
+8
-1
No files found.
dlls/activeds/pathname.c
View file @
992ec949
...
...
@@ -136,7 +136,10 @@ static HRESULT parse_path(BSTR path, BSTR *provider, BSTR *server, BSTR *dn)
if
(
!*
p
)
return
S_OK
;
if
(
*
p
++
!=
'/'
||
*
p
++
!=
'/'
||
!*
p
)
{
SysFreeString
(
*
provider
);
return
E_ADS_BAD_PATHNAME
;
}
p_server
=
p
;
server_len
=
0
;
...
...
@@ -145,7 +148,11 @@ static HRESULT parse_path(BSTR path, BSTR *provider, BSTR *server, BSTR *dn)
p
++
;
server_len
++
;
}
if
(
server_len
==
0
)
return
E_ADS_BAD_PATHNAME
;
if
(
server_len
==
0
)
{
SysFreeString
(
*
provider
);
return
E_ADS_BAD_PATHNAME
;
}
*
server
=
SysAllocStringLen
(
p_server
,
server_len
);
if
(
!*
server
)
...
...
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