From 6184871242645f1a94ca65609a38a55463f8808d Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 12 Oct 2011 19:03:09 -0700 Subject: [PATCH] Remove cppcheck warnings in ivl code. This patch removes the new cppcheck warnings in the main (ivl) directory. --- netenum.cc | 4 ++-- t-dll.cc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/netenum.cc b/netenum.cc index 2f5f14aed..99dd26f9b 100644 --- a/netenum.cc +++ b/netenum.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Stephen Williams (steve@icarus.com) + * Copyright (c) 2010-2011 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 @@ -62,7 +62,7 @@ perm_string netenum_t::find_value(const verinum&val) const { perm_string res; for(netenum_t::iterator cur = names_map_.begin(); - cur != names_map_.end(); cur++) { + cur != names_map_.end(); ++ cur) { if (cur->second == val) { res = cur->first; break; diff --git a/t-dll.cc b/t-dll.cc index 2038b425c..7ac03ae15 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -1045,6 +1045,7 @@ bool dll_target::ureduce(const NetUReduce*net) switch (net->type()) { case NetUReduce::NONE: assert(0); + delete obj; return false; case NetUReduce::AND: obj->type = IVL_LPM_RE_AND;