From 8209e266e7ca13020adb33481c3d2cbea232aa94 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sat, 21 Nov 2009 04:50:55 +0000 Subject: [PATCH] Memory leak in _kadm5_init_any introduced with ipropd Fix minor memory leak introduced by the ipropd integration. ticket: 6582 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23296 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/clnt/client_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index 99e8e15ba..82e417159 100644 --- a/src/lib/kadm5/clnt/client_init.c +++ b/src/lib/kadm5/clnt/client_init.c @@ -308,6 +308,8 @@ static kadm5_ret_t _kadm5_init_any(krb5_context context, char *client_name, else iprop_enable = 0; + free(iprop_svc); + memset(&addr, 0, sizeof(addr)); addr.sin_family = hp->h_addrtype; (void) memcpy(&addr.sin_addr, hp->h_addr, sizeof(addr.sin_addr)); -- 2.26.2