[Coin-lpsolver] possible memory leak

yax2 at lehigh.edu yax2 at lehigh.edu
Sun Jun 20 21:06:01 EDT 2004


Hi, 

By running SBB through Valgrind, found memory leak in Clp (lastest in cvs):

==8290==
==8290== 920 bytes in 2 blocks are definitely lost in loss record 2 of 3
==8290==    at 0x400258E0: __builtin_vec_new (vg_replace_malloc.c:203)
==8290==    by 0x40025938: operator new[](unsigned) (vg_replace_malloc.c:216)
==8290==    by 0x40321131: ClpPackedMatrix::scale(ClpModel*) const (in
/home/yax2/COIN/lib/libClp-O1.so)
==8290==

Probably, in function scale(), two of rowScale, usefulRow, columnScale and
usefulColumn are not deleted in some case. Also, if do not use initialSolve()
(use resolve() instead), no memory leak are found. 


Yan





-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the Clp mailing list