From f14651a9fe94aca2bc2569848d931e4ba7a318a7 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@cryptomilk.org>
Date: Fri, 11 Oct 2024 11:38:03 +0200
Subject: [PATCH] Fix libkadm5 parameter leak

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]

Reference:https://github.com/krb5/krb5/commit/f14651a9fe94aca2bc2569848d931e4ba7a318a7
Conflict:NA

---
 src/lib/kadm5/alt_prof.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c
index e8c1f51ca..4eb840e64 100644
--- a/src/lib/kadm5/alt_prof.c
+++ b/src/lib/kadm5/alt_prof.c
@@ -838,6 +838,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;
 }
 
-- 
2.33.0

