test for losing memory on compile errors

This commit is contained in:
David R. MacIver committed 2013-12-08 16:19:12 +00:00
1 parent 17a319d120
commit 4b48054f41
1 file changed
+7
+7
View File
@@ -248,4 +248,11 @@ static void jv_test() {
jv_free(o2);
}
/// Compile errors
{
jq_state *jq = jq_init();
jq_compile_args(jq, "}", jv_array());
jq_teardown(&jq);
}
}