From 240355b04c2b22026f535cfaa31a9a287de040b1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 10 Mar 2016 11:36:26 -0800 Subject: [PATCH] Make test for allocation failure handling fail more gracefully --- spec/runtime/parser_spec.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/runtime/parser_spec.cc b/spec/runtime/parser_spec.cc index f2c361e0..e008b53d 100644 --- a/spec/runtime/parser_spec.cc +++ b/spec/runtime/parser_spec.cc @@ -490,6 +490,7 @@ describe("Parser", [&]() { assert_root_node(expected_node_string); ts_document_free(doc); + doc = nullptr; AssertThat(record_alloc::outstanding_allocation_indices(), IsEmpty()); for (size_t i = 0; i < allocation_count; i++) {