[Libreoffice-bugs] [Bug 111634] Multiple memory leaks in libmacabdrv1

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 16 14:13:39 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111634

--- Comment #13 from Alex Thurgood <iplaw67 at tuta.io> ---
The biggest seems to be :

Malloc 16 Bytes 328067  < multiple >    5,01 MiB        libmacabdrv1.dylib     
connectivity::macab::MacabRecord::copy(int) const


macabfield *MacabRecord::copy(const sal_Int32 i) const
{
    /* Note: copy(i) creates a new macabfield identical to that at
     * location i, whereas get(i) returns a pointer to the macabfield
     * at location i.
     */
    if(i < size)
    {
        macabfield *_copy = new macabfield;
        _copy->type = fields[i]->type;
        _copy->value = fields[i]->value;
        if (_copy->value)
            CFRetain(_copy->value);
        return _copy;
    }

    return nullptr;
}


This gets invoked 360,000 times in all in just the short sequence of usage
described originally.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170816/d3146a96/attachment.html>


More information about the Libreoffice-bugs mailing list