RT RT/krbdev.mit.edu: Ticket #5475 Principal leak in kadm5_get_init_creds Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
5475
Status
new
Worked
0 min
Priority
0/0
Queue
krb5
 

 Keyword Selections  
Component
  • krb5-admin
Version_reported
  • 1.6
Version_Fixed
Target_Version
Tags
 

 Relationships  
Depends on:
Depended on by:
Parents:
Children:

Refers to:
  • 1000: (Nobody) All memory not being freed during error conditions in _kadm5_init_any [new]
Referred to by:
 
 Dates  
Created: Mon Mar 19 12:19:01 2007
Starts: Not set
Started: Not set
Last Contact: Not set
Due: Not set
Updated: Sat Jun 14 18:41:27 2008 by guest
 

 People  
Owner
 Nobody
Requestors
 Jerry.James@usu.edu
Cc
 
AdminCc
 
 

 More about Jerry James  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

History   Display mode: [Brief headers] [Full headers]
      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