Files
freeipa/daemons
Viktor Ashirov 1545c3fd7d ipa-pwd-extop: fix bind DN memory leaks in pre-op handlers
In `ipapwd_pre_add()` and `ipapwd_pre_mod()`, `binddn` is obtained via
`slapi_pblock_get()` with SLAPI_CONN_DN which returns an allocated
string. This string was never freed after use.

Add `slapi_ch_free_string(&binddn)` calls after the bind DN is no longer
needed in both 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