json: Better use gpgme_free
authorWerner Koch <wk@gnupg.org>
Fri, 25 Jan 2019 14:20:26 +0000 (15:20 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 25 Jan 2019 14:20:26 +0000 (15:20 +0100)
* 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 <wk@gnupg.org>
src/gpgme-json.c

index 232bc50..a8f9dec 100644 (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);