Home GnuPG

ecc: Fix memory leak in the error case of ecc_encrypt_raw

Description

ecc: Fix memory leak in the error case of ecc_encrypt_raw

* cipher/ecc.c (ecc_encrypt_raw): Add proper error cleanup in the main
block.

(cherry picked from commit e57e75ea517f32109b508113f18298fc69fd1192)

  • GnuPG-bug-id: T4210
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 24 2018, 11:50 AM
Parents
rC347987d4cf29: ecc: Fix possible memory leakage in parameter check of eddsa.
Branches
Unknown
Tags
Unknown
Tasks
T4210: Potential memory leak in ecc_encrypt_raw