summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-13 10:48:40 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-13 10:48:40 +0800
commitfd5d8325585c897f7d7fab7209c043bf1624acea (patch)
treee955b44868b4472edbee82622de20b11ebe64ccb /ord.c
parent0b61367927c2b77cce75a43e3db0e2a36d1dfe0b (diff)
Transaction free-er is now a clearer
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c3
1 files changed, 1 insertions, 2 deletions
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);
}