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.
This commit is contained in:
Ingo Klöcker 2023-02-10 10:00:56 +01:00
parent 41dc3bd22a
commit 21283dfd1b
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9

View File

@ -269,6 +269,8 @@ main (int argc, char *argv[])
exit (1); exit (1);
} }
gpgme_key_unref (key);
gpgme_release (ctx);
return 0; return 0;
} }