From: Ezra Peisach Date: Sat, 21 Nov 2009 04:50:55 +0000 (+0000) Subject: Memory leak in _kadm5_init_any introduced with ipropd X-Git-Tag: krb5-1.8-alpha1~168 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8209e266e7ca13020adb33481c3d2cbea232aa94;p=krb5.git 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 --- 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));