From fd5d8325585c897f7d7fab7209c043bf1624acea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 13 Mar 2023 10:48:40 +0800 Subject: Transaction free-er is now a clearer --- interchange/ord.h | 2 +- ord.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/interchange/ord.h b/interchange/ord.h index ed7933d..b6d00a4 100644 --- a/interchange/ord.h +++ b/interchange/ord.h @@ -49,7 +49,7 @@ void interchange_ord_checkout(const char *order_profile, void interchange_ord_free_order(struct interchange_ord_order *order); -void interchange_ord_free_transaction(struct interchange_ord_transaction +void interchange_ord_clear_transaction(struct interchange_ord_transaction *transaction); #ifdef __cplusplus diff --git a/ord.c b/ord.c index 9c13c93..c793a48 100644 --- a/ord.c +++ b/ord.c @@ -40,12 +40,11 @@ void interchange_ord_free_order(struct interchange_ord_order *order) free(order); } -void interchange_ord_free_transaction(struct interchange_ord_transaction +void interchange_ord_clear_transaction(struct interchange_ord_transaction *transaction) { if (transaction->order_number) free(transaction->order_number); if (transaction->payment_method) free(transaction->payment_method); - free(transaction); } -- cgit v1.2.3