auth: Avoid double free in key parsing
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 12 Feb 2013 12:59:08 +0000 (12:59 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 21 Feb 2013 17:09:49 +0000 (09:09 -0800)
commite816db093b7d4e85eaa23661bb9dba851b1e534e
treef3d912bbdc0e19054e417a9f436fbbb861182bac
parent2ee578d80034d8c636ebc1b242942865eb338f4f
auth: Avoid double free in key parsing

There was an error path whilst reading an extended key file which could
result in a key being freed using free(key), and then freed again
through the afsconf_typedKey_put() mechanism. Remove this double free.

Caught by clang-analyzer

Change-Id: I40bff56eddf4cb499ae5b7effdaf82f22379109d
Reviewed-on: http://gerrit.openafs.org/9147
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/auth/keys.c