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: 7f24233719
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-01-25 15:20:26 +01:00
parent 7f24233719
commit ed81892917
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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);