summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_get_orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-02 14:12:47 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-02 14:12:47 +0200
commit9d0e810049affc4077398d42c3c1bb7856a3b5bd (patch)
treed958804a0a4f32f1bced5539976cc116c88036e7 /src/testing/testing_api_cmd_get_orders.c
parent6ae58fdc8e11cefdbee3419d52151e43f8a09590 (diff)
downloadmerchant-9d0e810049affc4077398d42c3c1bb7856a3b5bd.tar.gz
merchant-9d0e810049affc4077398d42c3c1bb7856a3b5bd.tar.bz2
merchant-9d0e810049affc4077398d42c3c1bb7856a3b5bd.zip
fix misc memory leaks
Diffstat (limited to 'src/testing/testing_api_cmd_get_orders.c')
-rw-r--r--src/testing/testing_api_cmd_get_orders.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_get_orders.c b/src/testing/testing_api_cmd_get_orders.c
index 0a3b39a3..51292c3c 100644
--- a/src/testing/testing_api_cmd_get_orders.c
+++ b/src/testing/testing_api_cmd_get_orders.c
@@ -231,6 +231,9 @@ get_orders_cleanup (void *cls,
"GET /orders operation did not complete\n");
TALER_MERCHANT_orders_get_cancel (gos->ogh);
}
+ GNUNET_array_grow (gos->orders,
+ gos->orders_length,
+ 0);
GNUNET_free (gos);
}