------------------------------------------------------------------------
r24634 | ghudson | 2011-02-13 11:12:36 -0800 (Sun, 13 Feb 2011) | 10 lines
ticket: 6867
subject: Trace logging file descriptor leak
target_version: 1.9.1
tags: pullup
File descriptors created for trace logging were never being closed.
With short-lived contexts this leak would eventually overflow the
process's file table. Correct this oversight by closing the file
descriptor in file_trace_cb before freeing its container.
ticket: 6867
version_fixed: 1.9.1
status: resolved
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@24642
dc483132-0cff-0310-8789-
dd5450dbe970
if (info == NULL) {
/* Null info means destroy the callback data. */
+ close(*fd);
free(fd);
return;
}