From bfb14fbbc6b988733f2df2a65533af2edc9153fa Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 28 Oct 2013 23:08:52 +0000 Subject: [PATCH] Fix memory leak in NetBlock::nex_input(). --- net_nex_input.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/net_nex_input.cc b/net_nex_input.cc index 97211b00d..fa2d9ecfc 100644 --- a/net_nex_input.cc +++ b/net_nex_input.cc @@ -324,6 +324,7 @@ NexusSet* NetBlock::nex_input(bool rem_out) from other statements. They aren't really inputs to the block, just internal intermediate values. */ if (rem_out) result->rem(*prev); + delete prev; return result; }