Trace logging file descriptor leak
authorGreg Hudson <ghudson@mit.edu>
Sun, 13 Feb 2011 19:12:36 +0000 (19:12 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sun, 13 Feb 2011 19:12:36 +0000 (19:12 +0000)
commit6726c9f5eca0e49cabfdf878c02e5966bdcccd93
tree8a7ee901d8418ce885333ab34ca4e6b7b007c10b
parentd66abd299fcc4b288fdc6a904152fd96ba90e5d2
Trace logging file descriptor leak

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
target_version: 1.9.1
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24634 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/trace.c