From 35ee15eab36eafc660a50284529613ed9dd044da Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 14 Mar 2021 22:54:36 +0100 Subject: [PATCH] wldap32: Remove redundant NULL check before heap_free(). Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/wldap32/page.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/wldap32/page.c b/dlls/wldap32/page.c index a16ea52409e..07f29be0d50 100644 --- a/dlls/wldap32/page.c +++ b/dlls/wldap32/page.c @@ -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)