auth: Don't leak key on file parse error
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 31 Mar 2012 18:59:47 +0000 (14:59 -0400)
committerDerrick Brashear <shadow@dementix.org>
Mon, 9 Apr 2012 01:22:08 +0000 (18:22 -0700)
commitbe8d8b7c78eb54f460489084650ba13f3946d7a2
tree462cb09b7387e55e2beaa6bb97d60edc9fe2fb80
parent8f39150b2718d5d758ba9d02bf3becd9c8947120
auth: Don't leak key on file parse error

If we fail for any reason whilst parsing the keyfile from disk, don't
leak the key structure which we allocated to store the results of the
parse.

Change-Id: I21a27723f96af9428465134cfb975c83e10da535
Reviewed-on: http://gerrit.openafs.org/7102
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/auth/keys.c