diff options
author | Ingo Klöcker <[email protected]> | 2023-02-10 09:00:56 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2023-02-10 09:00:56 +0000 |
commit | 21283dfd1be1e56bc174cf5f12461888af7ab8b5 (patch) | |
tree | 7ae9212158e2bc7f8c219b85fcafdf68994b6bc8 /tests/gpg/t-import.c | |
parent | core: Allow finalization of signature verification of unencrypted data (diff) | |
download | gpgme-21283dfd1be1e56bc174cf5f12461888af7ab8b5.tar.gz gpgme-21283dfd1be1e56bc174cf5f12461888af7ab8b5.zip |
tests: Fix cleaning up at the end of the test
* tests/gpg/t-import.c (main): Unref key and release context.
--
This fixes leaks found with -fsanitize=address.
Diffstat (limited to '')
-rw-r--r-- | tests/gpg/t-import.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gpg/t-import.c b/tests/gpg/t-import.c index 1f7fdbc3..ec4bee09 100644 --- a/tests/gpg/t-import.c +++ b/tests/gpg/t-import.c @@ -269,6 +269,8 @@ main (int argc, char *argv[]) exit (1); } + gpgme_key_unref (key); + gpgme_release (ctx); return 0; } |