Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2013 10:26:23 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251934 - head/usr.bin/dtc
Message-ID:  <201306181026.r5IAQNs7005009@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: theraven
Date: Tue Jun 18 10:26:22 2013
New Revision: 251934
URL: http://svnweb.freebsd.org/changeset/base/251934

Log:
  Fix bug in destructor for checker manager in DTC that caused segfaults on
  exit.

Modified:
  head/usr.bin/dtc/checking.cc

Modified: head/usr.bin/dtc/checking.cc
==============================================================================
--- head/usr.bin/dtc/checking.cc	Tue Jun 18 09:54:09 2013	(r251933)
+++ head/usr.bin/dtc/checking.cc	Tue Jun 18 10:26:22 2013	(r251934)
@@ -195,6 +195,7 @@ check_manager::~check_manager()
 	while (disabled_checkers.begin() != disabled_checkers.end())
 	{
 		delete disabled_checkers.begin()->second;
+		disabled_checkers.erase(disabled_checkers.begin());
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306181026.r5IAQNs7005009>