summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_batch_deposit.c
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-20 12:16:50 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-20 12:17:10 -0500
commitb663c8a3c1c8f07f448fca5812543225a6d1c25a (patch)
tree270a82e45b06df5bd6afe87690fe1e9487ce649f /src/lib/exchange_api_batch_deposit.c
parenta7f0611a882a9231ec2d7c5f16de977844961164 (diff)
downloadexchange-b663c8a3c1c8f07f448fca5812543225a6d1c25a.tar.gz
exchange-b663c8a3c1c8f07f448fca5812543225a6d1c25a.tar.bz2
exchange-b663c8a3c1c8f07f448fca5812543225a6d1c25a.zip
fix memory leak on pay
Diffstat (limited to 'src/lib/exchange_api_batch_deposit.c')
-rw-r--r--src/lib/exchange_api_batch_deposit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/exchange_api_batch_deposit.c b/src/lib/exchange_api_batch_deposit.c
index ca5c3c618..4665908d2 100644
--- a/src/lib/exchange_api_batch_deposit.c
+++ b/src/lib/exchange_api_batch_deposit.c
@@ -269,6 +269,7 @@ handle_deposit_finished (void *cls,
GNUNET_break_op (0);
dr.hr.http_status = 0;
dr.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED;
+ GNUNET_JSON_parse_free (spec);
break;
}
dh->exchange_sigs = GNUNET_new_array (dh->num_cdds,
@@ -281,6 +282,7 @@ handle_deposit_finished (void *cls,
GNUNET_break_op (0);
dr.hr.http_status = 0;
dr.hr.ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE;
+ GNUNET_JSON_parse_free (spec);
break;
}
json_array_foreach (sigs, idx, sig)
@@ -330,12 +332,14 @@ handle_deposit_finished (void *cls,
GNUNET_break_op (0);
dr.hr.http_status = 0;
dr.hr.ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE;
+ GNUNET_JSON_parse_free (spec);
break;
}
}
TEAH_get_auditors_for_dc (dh->exchange,
&auditor_cb,
dh);
+ GNUNET_JSON_parse_free (spec);
}
dr.details.success.exchange_sigs = dh->exchange_sigs;
dr.details.success.exchange_pub = &dh->exchange_pub;