wldap32: Fix a mod_type leak (Valgrind).

This commit is contained in:
Sven Baars 2023-07-30 15:58:01 +02:00 committed by Alexandre Julliard
parent 3345404cbe
commit ca692fb39c

View file

@ -868,6 +868,7 @@ static inline void modfreeU( LDAPMod *mod )
bvarrayfreeU( mod->mod_vals.modv_bvals );
else
strarrayfreeU( mod->mod_vals.modv_strvals );
free( mod->mod_type );
free( mod );
}
@ -1010,6 +1011,7 @@ static inline void modfreeW( LDAPModW *mod )
bvarrayfreeW( mod->mod_vals.modv_bvals );
else
strarrayfreeW( mod->mod_vals.modv_strvals );
free( mod->mod_type );
free( mod );
}