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
c6c68bf3
Commit
c6c68bf3
authored
Feb 13, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Missing HeapFree on error path (found by Smatch).
parent
74950a9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
page.c
dlls/wldap32/page.c
+3
-0
No files found.
dlls/wldap32/page.c
View file @
c6c68bf3
...
@@ -114,7 +114,10 @@ static ULONG create_page_control( ULONG pagesize, struct WLDAP32_berval *cookie,
...
@@ -114,7 +114,10 @@ static ULONG create_page_control( ULONG pagesize, struct WLDAP32_berval *cookie,
ctrl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
LDAPControlW
)
);
ctrl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
LDAPControlW
)
);
if
(
!
ctrl
)
if
(
!
ctrl
)
{
HeapFree
(
GetProcessHeap
(),
0
,
val
);
return
WLDAP32_LDAP_NO_MEMORY
;
return
WLDAP32_LDAP_NO_MEMORY
;
}
ctrl
->
ldctl_oid
=
strAtoW
(
LDAP_PAGED_RESULT_OID_STRING
);
ctrl
->
ldctl_oid
=
strAtoW
(
LDAP_PAGED_RESULT_OID_STRING
);
ctrl
->
ldctl_value
.
bv_len
=
len
;
ctrl
->
ldctl_value
.
bv_len
=
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