|   |
  |
Mon Mar 19 12:19:04 2007 |
Jerry.James@usu.edu - Ticket created
|
|
|
| |
  |
To: krb5-bugs@mit.edu
Subject: Principal leak in kadm5_get_init_creds
From: Jerry James <Jerry.James@usu.edu>
Date: Mon, 19 Mar 2007 09:11:25 -0600
|
|
| |
  |
The function kadm5_get_init_creds fails to release a principal before
exiting. The leak can be observed by running "valgrind
--leak-check=full kadmin". No actions are necessary; simply exit from
kadmin immediately and the leak is reported. Valgrind actually reports
a leak in _kadm5_init_any on my Fedora Core 6 machine, but the line
number points to a spot in kadm5_get_init_creds. I have inspected the
source code and verified that this leak exists in all 1.5 releases as
well as in the 1.6 release. I am attaching a patch to plug the leak.
|
Download (untitled) 549b
|
| |
  |
|
Download kadm5_get_init_creds.patch 1k
|
| |
  |
Regards,
--
Jerry James, Assistant Professor Jerry.James@usu.edu
Computer Science Department http://www.cs.usu.edu/~jerry/
Utah State University
|
Download (untitled) 166b
|
|   |
  |
Mon Mar 19 13:20:43 2007 |
tlyu - Ticket 5475 RefersTo ticket 1000.
|
|
|
|   |
  |
Mon Mar 19 13:21:38 2007 |
tlyu - Component krb5-admin added
|
|
|
|   |
  |
Mon Mar 19 13:21:39 2007 |
tlyu - Version_reported 1.6 added
|
|
|