[PATCH v2] wldap32: Fix memory leak on error path in create_page_control (cppcheck)
21 Dec
2021
21 Dec
'21
5:06 a.m.
Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> --- v2: Fix typo in commit message --- dlls/wldap32/page.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wldap32/page.c b/dlls/wldap32/page.c index 8b0ded40e35..9f4acbdaa16 100644 --- a/dlls/wldap32/page.c +++ b/dlls/wldap32/page.c @@ -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; } -- 2.34.1
1458
Age (days ago)
1458
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alex Henrie -
Hans Leidekker