Opened 13 years ago
Closed 13 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)
Change History (4)
Changed 13 years ago by
| Attachment: | bbc66109add0.patch added |
|---|
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
| Status: | new → assigned |
|---|
comment:3 Changed 13 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
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.


The attached patch [bbc66109add0] solves this issue.