key: Fix resource leak
commitfe2e7c989d397460ce1df3ee7ba3aa8730d760b7
authorAlan Cox <alan@linux.intel.com>
Fri, 28 Sep 2012 11:20:02 +0000 (28 12:20 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Apr 2013 02:20:08 +0000 (10 03:20 +0100)
treec3999773188416afd69ee4c52925087c5c951655
parent6a2c19ca2210f3f3eef99eeca550acd06e54c0c0
key: Fix resource leak

commit a84a921978b7d56e0e4b87ffaca6367429b4d8ff upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
security/keys/keyctl.c