1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wldap32: Fix a possible memory leak (Coverity).

This commit is contained in:
Zhiyi Zhang 2023-12-30 13:05:21 +08:00 committed by Alexandre Julliard
parent e031a0d0da
commit b0de71f214

View file

@ -91,8 +91,12 @@ int CDECL WLDAP32_ber_flatten( WLDAP32_BerElement *ber, BERVAL **berval )
TRACE( "%p, %p\n", ber, berval );
if (ber_flatten( BER(ber), &bervalU )) return WLDAP32_LBER_ERROR;
if (!(bervalW = bervalUtoW( bervalU ))) return WLDAP32_LBER_ERROR;
bervalW = bervalUtoW( bervalU );
ber_bvfree( bervalU );
if (!bervalW)
return WLDAP32_LBER_ERROR;
*berval = bervalW;
return 0;
}