]> granicus.if.org Git - check/commitdiff
check_check_msg: use proper free for TestResult
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 17 Dec 2013 22:12:25 +0000 (22:12 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 17 Dec 2013 22:12:25 +0000 (22:12 +0000)
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

tests/check_check_msg.c

index b446fdda7b29a6bd6854c0375b322d6095124b8c..438ebea4eea95b91935587b40eaaa80f9988de9b 100644 (file)
@@ -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