COIN-OR::LEMON - Graph Library

Opened 12 years ago

Closed 11 years ago

#445 closed defect (fixed)

Buggy initialization of CplexEnv

Reported by: Alpar Juttner Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.3 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

A user reported obvious memory leak when solving many MIP problem with a fresh CplexMip instance for each. In addition valgrind report the following on CplexMip:

==10084== Conditional jump or move depends on uninitialised value(s)
==10084==    at 0x8104C32: lemon::CplexEnv::~CplexEnv() (cplex.cc:66)
==10084==    by 0x81051C8: lemon::CplexBase::~CplexBase() (cplex.cc:94)
==10084==    by 0x8108C8E: lemon::CplexMip::~CplexMip() (cplex.cc:880)

The reason is that the constructor of CplexEnv does not initialize the target of the _cnt pointer when it is allocated.

Attachments (1)

bbc66109add0.patch (510 bytes) - added by Alpar Juttner 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Alpar Juttner

Attachment: bbc66109add0.patch added

comment:1 Changed 12 years ago by Alpar Juttner

The attached patch [bbc66109add0] solves this issue.

comment:2 Changed 12 years ago by Alpar Juttner

Status: newassigned

comment:3 Changed 11 years ago by Alpar Juttner

Resolution: fixed
Status: assignedclosed

The patch has been merged to all relevant branches (1.1, 1.2, and main) as [bc726f4892c7].

Note: See TracTickets for help on using tickets.