aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-thread-keylist.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gpg/t-thread-keylist.c')
-rw-r--r--tests/gpg/t-thread-keylist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gpg/t-thread-keylist.c b/tests/gpg/t-thread-keylist.c
index d585bf48..6b9cee08 100644
--- a/tests/gpg/t-thread-keylist.c
+++ b/tests/gpg/t-thread-keylist.c
@@ -48,7 +48,10 @@ start_keylist (void *arg)
err = gpgme_op_keylist_start (ctx, NULL, 0);
fail_if_err (err);
- while (!(err = gpgme_op_keylist_next (ctx, &key)));
+ while (!(err = gpgme_op_keylist_next (ctx, &key)))
+ {
+ gpgme_key_unref (key);
+ }
gpgme_release (ctx);