From 27f96bd6f3e2b654f1c32c7c01ac894d2dd5b3a4 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 1 Oct 2009 20:41:15 -0700 Subject: [PATCH] Fix the last of the net rework memory leaks. This patch fixes the last of the memory leaks introduced by the net rework. --- vvp/words.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vvp/words.cc b/vvp/words.cc index 01b249420..cc0342753 100644 --- a/vvp/words.cc +++ b/vvp/words.cc @@ -424,11 +424,15 @@ static void __compile_real(char*label, char*name, scope, label, name, array_addr, local_flag); resolv_submit(res); + free(argv); return; } assert(node); - __compile_real_net2(node, array, scope, label, name, array_addr, local_flag); + __compile_real_net2(node, array, scope, label, name, array_addr, + local_flag); + free(argv[0].text); + free(argv); } bool __compile_real_net_resolv::resolve(bool msg_flag)