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:
parent
733dc15bae
commit
35ee15eab3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue