From b0d11e19181e8b40639947e90724fac7926aee99 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 9 Oct 2021 10:13:34 -0700 Subject: [PATCH] pivot-table-test: Fix memory leak when table is not displayed. Found by Address Sanitizer. --- tests/output/pivot-table-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/output/pivot-table-test.c b/tests/output/pivot-table-test.c index f1944c3237..9e91bfe3bf 100644 --- a/tests/output/pivot-table-test.c +++ b/tests/output/pivot-table-test.c @@ -1224,7 +1224,7 @@ read_table (struct lexer *lexer) if (!displayed) pivot_table_submit (pt); else - pivot_table_unshare (pt); + pivot_table_unref (pt); force_match (lexer, T_ENDCMD); } -- 2.30.2