Commit 3f245899 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

wldap32: Fix memory leak on error path in create_page_control (cppcheck).

parent 06923f61
......@@ -96,6 +96,7 @@ static ULONG create_page_control( ULONG pagesize, struct berval *cookie, UCHAR c
}
if (!(ctrl->ldctl_oid = strAtoW( LDAP_PAGED_RESULT_OID_STRING )))
{
free( val );
free( ctrl );
return LDAP_NO_MEMORY;
}
......
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