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
35dc94bc
Commit
35dc94bc
authored
Jun 07, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jun 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Fix memory leak on error path in ldap_start_tls_sW (scan-build).
parent
7b69313b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
init.c
dlls/wldap32/init.c
+3
-5
No files found.
dlls/wldap32/init.c
View file @
35dc94bc
...
@@ -450,14 +450,12 @@ ULONG CDECL ldap_start_tls_sW( LDAP *ld, ULONG *retval, LDAPMessage **result, LD
...
@@ -450,14 +450,12 @@ ULONG CDECL ldap_start_tls_sW( LDAP *ld, ULONG *retval, LDAPMessage **result, LD
}
}
if
(
!
ld
)
return
~
0u
;
if
(
!
ld
)
return
~
0u
;
if
(
CONNECTED
(
ld
))
return
WLDAP32_LDAP_LOCAL_ERROR
;
if
(
serverctrls
&&
!
(
serverctrlsU
=
controlarrayWtoU
(
serverctrls
)))
goto
exit
;
if
(
serverctrls
&&
!
(
serverctrlsU
=
controlarrayWtoU
(
serverctrls
)))
goto
exit
;
if
(
clientctrls
&&
!
(
clientctrlsU
=
controlarrayWtoU
(
clientctrls
)))
goto
exit
;
if
(
clientctrls
&&
!
(
clientctrlsU
=
controlarrayWtoU
(
clientctrls
)))
goto
exit
;
else
{
ret
=
map_error
(
ldap_start_tls_s
(
CTX
(
ld
),
serverctrlsU
,
clientctrlsU
)
);
if
(
CONNECTED
(
ld
))
return
WLDAP32_LDAP_LOCAL_ERROR
;
ret
=
map_error
(
ldap_start_tls_s
(
CTX
(
ld
),
serverctrlsU
,
clientctrlsU
)
);
}
exit:
exit:
controlarrayfreeU
(
serverctrlsU
);
controlarrayfreeU
(
serverctrlsU
);
...
...
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