From: brarcher Date: Tue, 17 Dec 2013 22:12:25 +0000 (+0000) Subject: check_check_msg: use proper free for TestResult X-Git-Tag: 0.10.0~321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57a79b61c3251e6cfcfda3a17f8726576377e4d7;p=check check_check_msg: use proper free for TestResult The TestResult was being freed, but not all the points to live data it was holding. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@895 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_check_msg.c b/tests/check_check_msg.c index b446fdd..438ebea 100644 --- a/tests/check_check_msg.c +++ b/tests/check_check_msg.c @@ -61,7 +61,7 @@ START_TEST(test_send_big) ck_assert_msg (tr_lno(tr) == i -1, "Bad loc line received"); if (tr != NULL) - free(tr); + tr_free(tr); } END_TEST @@ -87,7 +87,7 @@ START_TEST(test_send_test_error) ck_assert_msg (tr_lno(tr) == 25, "Bad loc line received"); if (tr != NULL) - free(tr); + tr_free(tr); } END_TEST @@ -116,7 +116,7 @@ START_TEST(test_send_with_passing_teardown) ck_assert_msg (tr_lno(tr) == 25, "Bad loc line received"); if (tr != NULL) - free(tr); + tr_free(tr); } END_TEST @@ -145,7 +145,7 @@ START_TEST(test_send_with_error_teardown) ck_assert_msg (tr_lno(tr) == 54, "Bad loc line received"); if (tr != NULL) - free(tr); + tr_free(tr); } END_TEST