Fix several memory leaks in the tests
diff --git a/tests/tests-c-compiler/check-src/check-22.-fwide-types.c b/tests/tests-c-compiler/check-src/check-22.-fwide-types.c
index 2b3a542..8fe42a4 100644
--- a/tests/tests-c-compiler/check-src/check-22.-fwide-types.c
+++ b/tests/tests-c-compiler/check-src/check-22.-fwide-types.c
@@ -79,6 +79,7 @@
);
}
assert(rval.consumed <= (size_t)consumed);
+ ASN_STRUCT_RESET(asn_DEF_T1, tp);
return;
}
@@ -113,6 +114,8 @@
ret = xer_fprint(stderr, &asn_DEF_T1, tp);
assert(ret == 0);
fprintf(stderr, "=== EOF ===\n");
+
+ ASN_STRUCT_RESET(asn_DEF_T1, tp);
}
static void