mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
g10: Fix memory leak.
* g10/sign.c (do_sign): Release old signature data. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
5c7d582228
commit
3de9bad359
@ -282,7 +282,9 @@ do_sign (PKT_public_key *pksk, PKT_signature *sig,
|
||||
sig->digest_algo = mdalgo;
|
||||
sig->digest_start[0] = dp[0];
|
||||
sig->digest_start[1] = dp[1];
|
||||
mpi_release (sig->data[0]);
|
||||
sig->data[0] = NULL;
|
||||
mpi_release (sig->data[1]);
|
||||
sig->data[1] = NULL;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user