Memory leak in _kadm5_init_any introduced with ipropd
authorEzra Peisach <epeisach@mit.edu>
Sat, 21 Nov 2009 04:50:55 +0000 (04:50 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 21 Nov 2009 04:50:55 +0000 (04:50 +0000)
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

index 99e8e15ba35e36f17786322e8efeca0c3f438d07..82e417159e01a1677aea11d04b0ecec9776aaec3 100644 (file)
@@ -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));