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
e521fe03
Commit
e521fe03
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/tests: Fix memory leaks (Valgrind).
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2ff5eb7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ldap.c
dlls/adsldp/tests/ldap.c
+7
-1
No files found.
dlls/adsldp/tests/ldap.c
View file @
e521fe03
...
...
@@ -235,8 +235,12 @@ static void do_search(const struct search *s)
trace
(
"search DN %s
\n
"
,
wine_dbgstr_w
(
s
->
dn
));
hr
=
ADsGetObject
(
s
->
dn
,
&
IID_IDirectorySearch
,
(
void
**
)
&
ds
);
if
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_DS_SERVER_DOWN
))
{
skip
(
"server is down
\n
"
);
return
;
}
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
pref
.
dwSearchPref
=
ADS_SEARCHPREF_SEARCH_SCOPE
;
pref
.
vValue
.
dwType
=
ADSTYPE_INTEGER
;
...
...
@@ -282,6 +286,7 @@ static void do_search(const struct search *s)
ok
(
!
res
->
values
[
i
],
"expected extra value %s
\n
"
,
wine_dbgstr_w
(
res
->
values
[
i
]));
IDirectorySearch_FreeColumn
(
ds
,
&
col
);
FreeADsMem
(
name
);
res
++
;
}
...
...
@@ -485,6 +490,7 @@ static void test_DirectoryObject(void)
hr
=
IDirectoryObject_QueryInterface
(
dirobj
,
&
IID_IADsOpenDSObject
,
(
void
**
)
&
unk
);
todo_wine
ok
(
hr
==
E_NOINTERFACE
,
"got %#x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IUnknown_Release
(
unk
);
hr
=
IDirectoryObject_QueryInterface
(
dirobj
,
&
IID_IDispatch
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
IUnknown_Release
(
unk
);
...
...
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