Files
freeipa/daemons
Viktor Ashirov 1a7819b2c6 ipa-pwd-extop: fix memory leaks of bind DN
In `ipapwd_chpwop()`, `ipapwd_setkeytab()`, and `ipapwd_getkeytab()`
functions, `bindDN`/`bind_dn` is obtained via `slapi_pblock_get()` with
SLAPI_CONN_DN which returns an allocated string. This string was never
freed in the cleanup sections of these functions.

Add `slapi_ch_free_string()` calls for the bind DN variables in the
`free_and_return` sections of all three functions.

Related: https://pagure.io/freeipa/issue/9895
Signed-off-by: Viktor Ashirov <vashirov@redhat.com>
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
2025-12-18 08:39:20 -03:00
..
2025-12-09 12:33:34 +01:00