From ed81892917f47dddc23aa99d88733e3f8f344256 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 25 Jan 2019 15:20:26 +0100 Subject: [PATCH] json: Better use gpgme_free * src/gpgme-json.c (subkey_to_json): here -- Avoid Windows ugliness of allowing different CRTs in the same process. Fixes-commit: 7f2423371964263784252cf839269023b6573bd2 Signed-off-by: Werner Koch --- src/gpgme-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpgme-json.c b/src/gpgme-json.c index 232bc506..a8f9decd 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -1022,7 +1022,7 @@ subkey_to_json (gpgme_subkey_t sub) tmp = gpgme_pubkey_algo_string (sub); xjson_AddStringToObject0 (result, "pubkey_algo_string", tmp); - xfree (tmp); + gpgme_free (tmp); xjson_AddStringToObject0 (result, "keyid", sub->keyid); xjson_AddStringToObject0 (result, "card_number", sub->card_number);