ima: Fix potential memory leak in ima_init_crypto()
[linux-2.6-microblaze.git] / security / integrity / ima / ima_crypto.c
index a7206cc..6449905 100644 (file)
@@ -205,6 +205,7 @@ out_array:
 
                crypto_free_shash(ima_algo_array[i].tfm);
        }
+       kfree(ima_algo_array);
 out:
        crypto_free_shash(ima_shash_tfm);
        return rc;