diff options
author | Werner Koch <[email protected]> | 2017-08-24 18:26:19 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-08-24 18:26:19 +0000 |
commit | b065a696344eac3007dbd5642143ecaaeebab43a (patch) | |
tree | b5625ec70696a9c311f916d21cb9e97767a6b8f2 /scd/app-openpgp.c | |
parent | indent: Change comment style on two functions (diff) | |
download | gnupg-b065a696344eac3007dbd5642143ecaaeebab43a.tar.gz gnupg-b065a696344eac3007dbd5642143ecaaeebab43a.zip |
gpg: Fix memory leak in sig-check.
* g10/sig-check.c (check_signature_over_key_or_uid): Remove useless
condition. Actually free when SIGNER was allocated by us.
--
SIGNER_ALLOCATED never received a value of -1 but that was tested.
IF SIGNER_ALLOCATED was 2 the memory was never freed:
if (signer_allocated == 1)
if (signer_allocated == 2)
free()
Fixes-commit: 44cdb9d73f1a0b7d2c8483a119b9c4d6caabc1ec
This function needs to be audited more thoroughly.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions