From cf193b305523f3f67812a19f2c06ed7eb924c9e5 Mon Sep 17 00:00:00 2001 From: Cary R Date: Sat, 9 May 2020 23:01:51 -0700 Subject: [PATCH] Cleanup vpiClassTypespec when running valgrind --- vvp/vpi_scope.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vvp/vpi_scope.cc b/vvp/vpi_scope.cc index 8f0ed1ade..a795efd4a 100644 --- a/vvp/vpi_scope.cc +++ b/vvp/vpi_scope.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001-2015 Stephen Williams (steve@icarus.com) + * Copyright (c) 2001-2020 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -67,6 +67,7 @@ static void delete_sub_scopes(__vpiScope *scope) case vpiGenScope: case vpiNamedBegin: case vpiNamedFork: + case vpiClassTypespec: delete_sub_scopes(lscope); vthreads_delete(lscope); delete item;