possible mem leak in add_key_rnd()?

Will Fiveash William.Fiveash at sun.com
Mon Oct 31 20:40:15 EST 2005


In kdb_cpw.c:add_key_rnd() line 206 I see:

        tptr->key_data_contents[k] = krb5_db_alloc(context, NULL, tmp_key_data.key_data_length[k]);

but I did not see that tptr->key_data_contents[k] was free()'ed before
this assignment.  Am I wrong in thinking that this is a memory leak?

-- 
Will Fiveash
Sun Microsystems Inc.
Austin, TX, USA (TZ=CST6CDT)


More information about the krbdev mailing list