Hi, Alexandre,
Thanks for noticing this problem. I have wrapped all the raw pointers
in this function in std::auto_ptr. This should fix the problem.
The updated code will be in SVN Revision 504.
John
On 3/27/12 7:40 AM, Alexandre Maurel wrote:
> Hello John,
>
> I'm not sure but I think I found a memory leak in ibis::bord backup
> method.
>
> The variable values is never deleted.
>
> int ibis::bord::backup(const char* dir, const char* tname,
> const char* tdesc) const {
> ...
> ...
>
> switch (col.type()) {
> case ibis::BYTE: {
> array_t<signed char> *values = col.selectBytes(msk0);
> if (values != 0) {
> ierr = ibis::part::writeColumn
> (fdes, 0, nEvents, *values,
> (signed char)0x7F, msk1, msk0);
> }
> else {
> ierr = -4;
> }
> break;}
>
>
> Regards,
>
> Alex
>
>
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users