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
2ff5eb7f
Commit
2ff5eb7f
authored
Apr 17, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Fix memory leaks (Valgrind).
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
213404da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
adsldp.c
dlls/adsldp/adsldp.c
+7
-0
schema.c
dlls/adsldp/schema.c
+1
-0
No files found.
dlls/adsldp/adsldp.c
View file @
2ff5eb7f
...
...
@@ -785,12 +785,14 @@ static HRESULT WINAPI ldapns_GetInfoEx(IADs *iface, VARIANT prop, LONG reserved)
{
ldap_value_freeW
(
values
);
ldap_memfreeW
(
attr
);
ber_free
(
ber
,
0
);
goto
exit
;
}
attr
=
ldap_next_attributeW
(
ldap
->
ld
,
entry
,
ber
);
}
ber_free
(
ber
,
0
);
entry
=
ldap_next_entry
(
ldap
->
ld
,
res
);
}
...
...
@@ -1812,6 +1814,8 @@ static HRESULT WINAPI search_FreeColumn(IDirectorySearch *iface, PADS_SEARCH_COL
if
(
!
col
)
return
E_ADS_BAD_PARAMETER
;
if
(
!
wcsicmp
(
col
->
pszAttrName
,
L"ADsPath"
))
heap_free
(
col
->
pADsValues
[
0
].
u
.
CaseIgnoreString
);
heap_free
(
col
->
pADsValues
);
heap_free
(
col
->
pszAttrName
);
...
...
@@ -1839,6 +1843,9 @@ static HRESULT WINAPI search_CloseSearchHandle(IDirectorySearch *iface, ADS_SEAR
ldap_search_abandon_page
(
ldap
->
ld
,
ldap_ctx
->
page
);
if
(
ldap_ctx
->
res
)
ldap_msgfree
(
ldap_ctx
->
res
);
if
(
ldap_ctx
->
ber
)
ber_free
(
ldap_ctx
->
ber
,
0
);
heap_free
(
ldap_ctx
);
return
S_OK
;
}
...
...
dlls/adsldp/schema.c
View file @
2ff5eb7f
...
...
@@ -433,6 +433,7 @@ struct attribute_type *load_schema(LDAP *ld, ULONG *at_single_count, ULONG *at_m
}
exit:
ldap_value_freeW
(
schema
);
ldap_msgfree
(
res
);
if
(
at
)
{
...
...
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