summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-19 13:35:43 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-19 13:35:43 +0100
commit807d8bc287cd1004b1726a43cc71f8d8dd7e9cdd (patch)
treed098068d00ff686f18ad707ae58e91bcd98b5a14 /src/testing
parent0be78bafee2d7e1c6df48ec78f6ba1bcf17b1295 (diff)
downloadmerchant-807d8bc287cd1004b1726a43cc71f8d8dd7e9cdd.tar.gz
merchant-807d8bc287cd1004b1726a43cc71f8d8dd7e9cdd.tar.bz2
merchant-807d8bc287cd1004b1726a43cc71f8d8dd7e9cdd.zip
-fix more leaks
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_checkserver.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_checkserver.c b/src/testing/testing_api_cmd_checkserver.c
index 56b05438..aa75e374 100644
--- a/src/testing/testing_api_cmd_checkserver.c
+++ b/src/testing/testing_api_cmd_checkserver.c
@@ -202,6 +202,22 @@ checkserver_run (void *cls,
}
+/**
+ * Free the state of a "checkeserver" CMD.
+ *
+ * @param cls closure.
+ * @param cmd command being run.
+ */
+static void
+checkserver_cleanup (void *cls,
+ const struct TALER_TESTING_Command *cmd)
+{
+ struct CheckState *cs = cls;
+
+ GNUNET_free (cs);
+}
+
+
struct TALER_TESTING_Command
TALER_TESTING_cmd_checkserver2 (const char *label,
const char *ref_operation,
@@ -225,7 +241,8 @@ TALER_TESTING_cmd_checkserver2 (const char *label,
struct TALER_TESTING_Command cmd = {
.cls = cs,
.label = label,
- .run = &checkserver_run
+ .run = &checkserver_run,
+ .cleanup = &checkserver_cleanup
};
return cmd;