diff options
| author | Werner Koch <[email protected]> | 2017-02-10 16:16:07 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2017-02-10 16:58:26 +0000 |
| commit | 5996c7bf99f3a681393fd9589276399ebc956cff (patch) | |
| tree | 57a04b9d2eb7745e8d49c3e0597cd79c10e4ea31 /dirmngr/ldap-url.c | |
| parent | common: Avoid warning about implicit declaration of gnupg_fd_valid. (diff) | |
| download | gnupg-5996c7bf99f3a681393fd9589276399ebc956cff.tar.gz gnupg-5996c7bf99f3a681393fd9589276399ebc956cff.zip | |
gpg: Fix memory leak in the error case of signature creation.
* g10/sign.c (write_signature_packets): Free SIG. Also replace
xcalloc by xtrycalloc.
--
If do_sign fails SIG was not released. Note that in the good case SIG
is transferred to PKT and freed by free_packet.
Reported-by: Stephan Müller
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/ldap-url.c')
0 files changed, 0 insertions, 0 deletions
