From 21283dfd1be1e56bc174cf5f12461888af7ab8b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 10 Feb 2023 10:00:56 +0100 Subject: 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. --- tests/gpg/t-import.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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; } -- cgit v1.2.1