From 4b48054f41e000fde098a6c1606e0a4396d11f7f Mon Sep 17 00:00:00 2001 From: "David R. MacIver" Date: Sun, 8 Dec 2013 16:19:12 +0000 Subject: [PATCH] test for losing memory on compile errors --- jq_test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jq_test.c b/jq_test.c index f10a258a..b6220c70 100644 --- a/jq_test.c +++ b/jq_test.c @@ -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); + } }