<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Multiple memory leaks in libmacabdrv1"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111634#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Multiple memory leaks in libmacabdrv1"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111634">bug 111634</a>
from <span class="vcard"><a class="email" href="mailto:iplaw67@tuta.io" title="Alex Thurgood <iplaw67@tuta.io>"> <span class="fn">Alex Thurgood</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>