key: Fix resource leak
authorAlan Cox <alan@linux.intel.com>
Fri, 28 Sep 2012 11:20:02 +0000 (12:20 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 28 Sep 2012 11:20:02 +0000 (12:20 +0100)
commita84a921978b7d56e0e4b87ffaca6367429b4d8ff
tree03edfc3a5039edd443078d7adc20d585be89022b
parent631527703d1aa2f0c5dc2af0d998f4da95c83f0e
key: Fix resource leak

On an error iov may still have been reallocated and need freeing

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David Howells <dhowells@redhat.com>
security/keys/keyctl.c