diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index aaa7af856b39890be1b2b2ba9a5fb178bb5fb171..73a400483696efd94c86c4ee48dd5f8a5320b962 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -2813,6 +2813,7 @@ static struct talitos_crypto_alg *talitos_alg_alloc(struct device *dev, break; default: dev_err(dev, "unknown algorithm type %d\n", t_alg->algt.type); + kfree(t_alg); return ERR_PTR(-EINVAL); }