diff options
author | Ezra Peisach <epeisach@mit.edu> | 2009-11-21 04:50:55 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2009-11-21 04:50:55 +0000 |
commit | 8209e266e7ca13020adb33481c3d2cbea232aa94 (patch) | |
tree | 3678c10f39931b953b462acac792d9beacffb502 /src/lib/kadm5 | |
parent | 6891e67a2c4b364195499bd6d3e0f0f721d11791 (diff) | |
download | krb5-8209e266e7ca13020adb33481c3d2cbea232aa94.zip krb5-8209e266e7ca13020adb33481c3d2cbea232aa94.tar.gz krb5-8209e266e7ca13020adb33481c3d2cbea232aa94.tar.bz2 |
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
Diffstat (limited to 'src/lib/kadm5')
-rw-r--r-- | src/lib/kadm5/clnt/client_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index 99e8e15..82e4171 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)); |