diff options
| author | Andre Heinecke <[email protected]> | 2016-11-10 14:04:17 +0000 |
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2016-11-10 14:04:17 +0000 |
| commit | d0030efb45ec8436dd84a9623d2f66b80c6b9e10 (patch) | |
| tree | e7b358905fbe5e43bcc77c8d371b83003d8f0287 /tests/gpg/t-thread-keylist.c | |
| parent | tests: Improve new thread tests (diff) | |
| download | gpgme-d0030efb45ec8436dd84a9623d2f66b80c6b9e10.tar.gz gpgme-d0030efb45ec8436dd84a9623d2f66b80c6b9e10.zip | |
tests: Fix additional memleaks in thread tests
* tests/gpg/t-thread-keylist-verify.c (start_verify): Release
data.
(start_keylist): Unref keys.
* tests/gpg/t-thread-keylist.c (start_keylist): Unref keys.
Diffstat (limited to 'tests/gpg/t-thread-keylist.c')
| -rw-r--r-- | tests/gpg/t-thread-keylist.c | 5 |
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); |
