]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix libkadm5 parameter leak
authorAndreas Schneider <asn@cryptomilk.org>
Fri, 11 Oct 2024 09:38:03 +0000 (11:38 +0200)
committerGreg Hudson <ghudson@mit.edu>
Fri, 18 Oct 2024 19:35:57 +0000 (15:35 -0400)
Commit aa91cb5dbbd4356c7a9069f4f52a10f70d91bc00 added kadmind_listen,
kpasswd_listen, and iprop_listen fields to kadm5_config_params, but
did not add them to the fields freed in kadm5_free_config_params().
Add them now.

[ghudson@mit.edu: rewrote commit message]

src/lib/kadm5/alt_prof.c

index e8c1f51ca9c98363aae88063227b610058f259bf..4eb840e64573d47cf78997015e9aaeca1082dea1 100644 (file)
@@ -757,6 +757,9 @@ kadm5_free_config_params(krb5_context context, kadm5_config_params *params)
     free(params->acl_file);
     free(params->realm);
     free(params->iprop_logfile);
+    free(params->iprop_listen);
+    free(params->kadmind_listen);
+    free(params->kpasswd_listen);
     return 0;
 }