freeipa/daemons/ipa-slapi-plugins/ipa-cldap
Francisco Trivino 3de5e4e1f7 ipa_cldap: fix memory leak
ipa_cldap_encode_netlogon() allocates memory to store binary data as part of
berval (bv_val) when processing a CLDAP packet request from a worker. The
data is used by ipa_cldap_respond() but bv_val is not freed later on.

This commit is adding the corresponding free() after ipa_cldap_respond()
is completed.

Discovered by LeakSanitizer

Fixes: https://pagure.io/freeipa/issue/9110
Signed-off-by: Francisco Trivino <ftrivino@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
2022-02-11 13:31:34 +02:00
..
ipa_cldap_netlogon.c Easier to use ipa_gethostfqdn() 2020-10-26 17:11:19 +11:00
ipa_cldap_tests.c cmocka_tests: Do not use deprecated cmocka interface 2015-11-18 12:54:43 +01:00
ipa_cldap_worker.c ipa_cldap: fix memory leak 2022-02-11 13:31:34 +02:00
ipa_cldap.c Fix compilation error in ipa-cldap. 2013-12-06 14:44:40 +01:00
ipa_cldap.h Easier to use ipa_gethostfqdn() 2020-10-26 17:11:19 +11:00
ipa-cldap-conf.ldif Create skeleton CLDAP server as a DS plugin 2011-11-21 18:52:48 -05:00
Makefile.am Unify access to FQDN 2020-10-26 17:11:19 +11:00