From: Ben Pfaff Date: Sat, 9 Oct 2021 17:13:34 +0000 (-0700) Subject: pivot-table-test: Fix memory leak when table is not displayed. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=b0d11e19181e8b40639947e90724fac7926aee99 pivot-table-test: Fix memory leak when table is not displayed. Found by Address Sanitizer. --- 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); }