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...
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18961
dc483132-0cff-0310-8789-
dd5450dbe970
FREE(d->fn);
d->fn = NULL;
}
- (void) close(d->fd);
+ if (d->fd != -1) {
+ (void) close(d->fd);
+ }
}
return retval;
}