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
0408d3a8
Commit
0408d3a8
authored
Dec 11, 2022
by
Fabian Maurer
Committed by
Alexandre Julliard
Jan 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Free resource in error case and return error code (Coverity).
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
parent
4a8b12a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
misc.c
dlls/wldap32/misc.c
+9
-3
No files found.
dlls/wldap32/misc.c
View file @
0408d3a8
...
...
@@ -413,12 +413,18 @@ ULONG CDECL WLDAP32_ldap_result( LDAP *ld, ULONG msgid, ULONG all, struct l_time
ret
=
ldap_result
(
CTX
(
ld
),
msgid
,
all
,
timeout
?
&
timeval
:
NULL
,
&
msgU
);
}
if
(
msgU
&&
(
msg
=
calloc
(
1
,
sizeof
(
*
msg
)
)))
if
(
!
msgU
)
return
ret
;
if
(
!
(
msg
=
calloc
(
1
,
sizeof
(
*
msg
)
)))
{
MSG
(
msg
)
=
msgU
;
*
res
=
msg
;
free
(
msgU
)
;
return
WLDAP32_LDAP_NO_MEMORY
;
}
MSG
(
msg
)
=
msgU
;
*
res
=
msg
;
return
ret
;
}
...
...
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