Module: wine Branch: master Commit: ca692fb39c7d8c1e0a579f50d84a60833d72066e URL: https://gitlab.winehq.org/wine/wine/-/commit/ca692fb39c7d8c1e0a579f50d84a608...
Author: Sven Baars sbaars@codeweavers.com Date: Sun Jul 30 15:58:01 2023 +0200
wldap32: Fix a mod_type leak (Valgrind).
---
dlls/wldap32/winldap_private.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/wldap32/winldap_private.h b/dlls/wldap32/winldap_private.h index e834f9d4e6f..ce9a7cc3fa8 100644 --- a/dlls/wldap32/winldap_private.h +++ b/dlls/wldap32/winldap_private.h @@ -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 ); }