aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/generic_mpih-mul1.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2019-06-24 10:32:26 +0000
committerHerbert Xu <[email protected]>2019-07-03 14:11:55 +0000
commitc8ea9fce2baf7b643384f36f29e4194fa40d33a6 (patch)
treeac6c28eff7d957212a01d18d2dc932ef9b54b3a6 /lib/mpi/generic_mpih-mul1.c
parentcrypto: hmac - fix memory leak in hmac_init_tfm() (diff)
downloadkernel-c8ea9fce2baf7b643384f36f29e4194fa40d33a6.tar.gz
kernel-c8ea9fce2baf7b643384f36f29e4194fa40d33a6.zip
lib/mpi: Fix karactx leak in mpi_powm
Sometimes mpi_powm will leak karactx because a memory allocation failure causes a bail-out that skips the freeing of karactx. This patch moves the freeing of karactx to the end of the function like everything else so that it can't be skipped. Reported-by: [email protected] Fixes: cdec9cb5167a ("crypto: GnuPG based MPI lib - source files...") Cc: <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/generic_mpih-mul1.c')
0 files changed, 0 insertions, 0 deletions