wldap32: Remove redundant NULL check before heap_free().

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2021-03-14 22:54:36 +01:00 committed by Alexandre Julliard
parent 733dc15bae
commit 35ee15eab3
1 changed files with 2 additions and 5 deletions

View File

@ -241,11 +241,8 @@ ULONG CDECL ldap_get_paged_count( WLDAP32_LDAP *ld, PLDAPSearch search,
return WLDAP32_LDAP_SUCCESS;
}
if (search->cookie)
{
heap_free( search->cookie );
search->cookie = NULL;
}
heap_free( search->cookie );
search->cookie = NULL;
ret = ldap_parse_page_controlW( ld, server_ctrls, count, &search->cookie );
if (ret == WLDAP32_LDAP_SUCCESS)