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;