diff options
author | Ingo Klöcker <dev@ingo-kloecker.de> | 2023-02-10 10:00:56 +0100 |
---|---|---|
committer | Ingo Klöcker <dev@ingo-kloecker.de> | 2023-02-10 10:00:56 +0100 |
commit | 21283dfd1be1e56bc174cf5f12461888af7ab8b5 (patch) | |
tree | 7ae9212158e2bc7f8c219b85fcafdf68994b6bc8 | |
parent | 41dc3bd22a3e0001abec8f2bea79b40ee5ad00be (diff) | |
download | gpgme-21283dfd1be1e56bc174cf5f12461888af7ab8b5.tar.gz |
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.
-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; } |