]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - crypto/lrw.c
crypto: lrw - fix memleak
[mv-sheeva.git] / crypto / lrw.c
index 358f80be2bf97d128ebd648887325a01ea051a70..fca3246a953faddc063141bbd153c9fcad5df684 100644 (file)
@@ -220,6 +220,7 @@ static int init_tfm(struct crypto_tfm *tfm)
 
        if (crypto_cipher_blocksize(cipher) != 16) {
                *flags |= CRYPTO_TFM_RES_BAD_BLOCK_LEN;
+               crypto_free_cipher(cipher);
                return -EINVAL;
        }