Fix memory leak in TEST_JR_cc