diff options
| author | Jakub Jelen <[email protected]> | 2021-04-12 17:19:59 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2021-05-20 12:28:49 +0000 |
| commit | 33a2362e566c0e0d7011abf2e5fa5704d7cb4206 (patch) | |
| tree | e936d381da279f1cf2fc577b2eb256883999d73a /common/name-value.c | |
| parent | sm: Avoid memory leaks and double double-free (diff) | |
| download | gnupg-33a2362e566c0e0d7011abf2e5fa5704d7cb4206.tar.gz gnupg-33a2362e566c0e0d7011abf2e5fa5704d7cb4206.zip | |
agent: Fix memory leaks
* agent/call-daemon.c (daemon_start): free wctp
* agent/call-scd.c (agent_card_pksign): return error instead of noop
(card_keyinfo_cb): free keyinfo. Restructure to avoid a goto backwards.
* agent/protect.c (agent_get_shadow_info_type): allocate only as a last
action. Catch xtrymalloc failure.
(agent_is_tpm2_key): Free buf.
--
Signed-off-by: Jakub Jelen <[email protected]>
Additional changes are:
- Restructure to avoid a goto backwards.
- Catch xtrymalloc failure.
GnuPG-bug-id: 5393
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/name-value.c')
0 files changed, 0 insertions, 0 deletions
