aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/tests/mgcp/mgcp_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c
index 154d0f308..92099dbee 100644
--- a/openbsc/tests/mgcp/mgcp_test.c
+++ b/openbsc/tests/mgcp/mgcp_test.c
@@ -1208,7 +1208,7 @@ static void test_osmux_cid(void)
int main(int argc, char **argv)
{
- msgb_talloc_ctx_init(NULL, 0);
+ void *msgb_ctx = msgb_talloc_ctx_init(NULL, 0);
osmo_init_logging(&log_info);
test_strline();
@@ -1227,6 +1227,9 @@ int main(int argc, char **argv)
test_no_name();
test_osmux_cid();
+ OSMO_ASSERT(talloc_total_size(msgb_ctx) == 0);
+ OSMO_ASSERT(talloc_total_blocks(msgb_ctx) == 1);
+ talloc_free(msgb_ctx);
printf("Done\n");
return EXIT_SUCCESS;
}