From 081654efe3e47e9ed85b6efccb9438ee19ddb164 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 20 Jul 2021 14:29:31 +0000
Subject: [PATCH] Fixed table memory leak

---
 ast.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ast.cpp b/ast.cpp
index 57bd9ae..2c349da 100644
--- a/ast.cpp
+++ b/ast.cpp
@@ -174,7 +174,8 @@
 		for (std::vector<Line_Word*>::size_type j = 0; j < t->size(); j++) {
 			delete (*t)[j];
 		}
-		table[i]->clear();
+		t->clear();
+		delete t;
 	}
 	table.clear();
 }

--
Gitblit v1.10.0