aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 80a07318b..8e523e3b4 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -1024,7 +1024,12 @@ decode_keys_json (const json_t *resp_obj,
1024 } 1024 }
1025 } 1025 }
1026 if (GNUNET_YES == found) 1026 if (GNUNET_YES == found)
1027 {
1028 GNUNET_array_grow (ai.denom_keys,
1029 ai.num_denom_keys,
1030 0);
1027 continue; /* we are done */ 1031 continue; /* we are done */
1032 }
1028 if (key_data->auditors_size == key_data->num_auditors) 1033 if (key_data->auditors_size == key_data->num_auditors)
1029 GNUNET_array_grow (key_data->auditors, 1034 GNUNET_array_grow (key_data->auditors,
1030 key_data->auditors_size, 1035 key_data->auditors_size,
@@ -1564,11 +1569,15 @@ deserialize_data (struct TALER_EXCHANGE_Handle *exchange,
1564 return; 1569 return;
1565 } 1570 }
1566 if (0 != version) 1571 if (0 != version)
1572 {
1573 GNUNET_JSON_parse_free (spec);
1567 return; /* unsupported version */ 1574 return; /* unsupported version */
1575 }
1568 if (0 != strcmp (url, 1576 if (0 != strcmp (url,
1569 exchange->url)) 1577 exchange->url))
1570 { 1578 {
1571 GNUNET_break (0); 1579 GNUNET_break (0);
1580 GNUNET_JSON_parse_free (spec);
1572 return; 1581 return;
1573 } 1582 }
1574 memset (&key_data, 1583 memset (&key_data,
@@ -1581,6 +1590,7 @@ deserialize_data (struct TALER_EXCHANGE_Handle *exchange,
1581 &vc)) 1590 &vc))
1582 { 1591 {
1583 GNUNET_break (0); 1592 GNUNET_break (0);
1593 GNUNET_JSON_parse_free (spec);
1584 return; 1594 return;
1585 } 1595 }
1586 /* decode successful, initialize with the result */ 1596 /* decode successful, initialize with the result */
@@ -1594,6 +1604,7 @@ deserialize_data (struct TALER_EXCHANGE_Handle *exchange,
1594 exchange->cert_cb (exchange->cert_cb_cls, 1604 exchange->cert_cb (exchange->cert_cb_cls,
1595 &exchange->key_data, 1605 &exchange->key_data,
1596 vc); 1606 vc);
1607 GNUNET_JSON_parse_free (spec);
1597} 1608}
1598 1609
1599 1610