Commit c6c68bf3 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wldap32: Missing HeapFree on error path (found by Smatch).

parent 74950a9e
...@@ -114,7 +114,10 @@ static ULONG create_page_control( ULONG pagesize, struct WLDAP32_berval *cookie, ...@@ -114,7 +114,10 @@ static ULONG create_page_control( ULONG pagesize, struct WLDAP32_berval *cookie,
ctrl = HeapAlloc( GetProcessHeap(), 0, sizeof(LDAPControlW) ); ctrl = HeapAlloc( GetProcessHeap(), 0, sizeof(LDAPControlW) );
if (!ctrl) if (!ctrl)
{
HeapFree( GetProcessHeap(), 0, val );
return WLDAP32_LDAP_NO_MEMORY; return WLDAP32_LDAP_NO_MEMORY;
}
ctrl->ldctl_oid = strAtoW( LDAP_PAGED_RESULT_OID_STRING ); ctrl->ldctl_oid = strAtoW( LDAP_PAGED_RESULT_OID_STRING );
ctrl->ldctl_value.bv_len = len; ctrl->ldctl_value.bv_len = len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment