mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 08:59:57 -06:00
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>