[CoinUtils-tickets] [COIN-OR Common Utilities] #78: destructor of CoinLpIO
COIN-OR Common Utilities
coin-trac at coin-or.org
Thu Jun 6 20:13:59 EDT 2013
#78: destructor of CoinLpIO
------------------+-------------------
Reporter: Uonly | Type: defect
Status: new | Priority: minor
Version: | Keywords:
------------------+-------------------
the code did not set the pointer to NULL after deletion. add handler_ =
NULL to the destructor of CoinLpIO. Otherwise, seg fault when having
multiple objects of CoinLpIO
CoinLpIO::~CoinLpIO() {
stopHash(0);
stopHash(1);
freeAll();
if (defaultHandler_) {
delete handler_;
handler_ = NULL;
}
}
--
Ticket URL: <https://projects.coin-or.org/ticket/78>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects
More information about the CoinUtils-tickets
mailing list