If there is an error in opening the replay cache - memory is freed, but close() is invoked with -1 (failure from open()). While technically, close() will return EBADF in such a case, and nothing bad will happen, valgrind picks up on this and provides an error... Commit By: epeisach Revision: 18961 Changed Files: U trunk/src/lib/krb5/rcache/rc_io.c