Home GnuPG

cipher: fix memory leak.
2b5bbe264fcdUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

cipher: fix memory leak.

* cipher/pubkey.c (gcry_pk_sign): Handle the specific case of ECC,
where there is NULL whichi is not the sentinel.

This is a kind of makeshift fix, but the MPI array API is internal
only and will be removed, it is better not to change API now.

Details

Provenance
gniibeAuthored on Aug 9 2013, 1:26 AM
Parents
rC426cbc9feca0: mpi: Clear immutable flag on the result of gcry_mpi_set.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rC2b5bbe264fcd: cipher: fix memory leak. (authored by NIIBE Yutaka <gniibe@fsij.org>).Aug 9 2013, 1:26 AM