From 897522527d493307d15809a41496f8b76ec4edfe Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 25 May 2018 14:50:59 +0200 Subject: [PATCH] json: Fix double ctx alloc * src/gpgme-json.c (op_keylist): Only get one ctx. --- src/gpgme-json.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gpgme-json.c b/src/gpgme-json.c index 3cdd744d..ca8c41c8 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -1966,9 +1966,6 @@ op_keylist (cjson_t request, cjson_t result) patterns = create_keylist_patterns (request); /* Do a keylisting and add the keys */ - if ((err = gpgme_new (&ctx))) - goto leave; - gpgme_set_protocol (ctx, protocol); gpgme_set_keylist_mode (ctx, mode); err = gpgme_op_keylist_ext_start (ctx, (const char **) patterns,