Ticket #76 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Reduce memory leaks before releasing xmlroff 0.5.3

Reported by: tkg Assigned to:
Priority: major Milestone: xmlroff 0.5.3
Component: libfo Version: 0.5.x
Keywords: Cc:
Blocking:

Description

Continue progress made in xmlroff 0.5.2 (see #52).

Reference for measuring improvements is Valgrind summary for processing xmlroff.fo with xmlroff 0.5.2:

==32332== LEAK SUMMARY:
==32332==    definitely lost: 2,348 bytes in 27 blocks.
==32332==    indirectly lost: 256 bytes in 11 blocks.
==32332==      possibly lost: 376,576 bytes in 382 blocks.
==32332==    still reachable: 9,758,031 bytes in 72,175 blocks.
==32332==         suppressed: 0 bytes in 0 blocks.

Change History

09/16/07 22:29:56 changed by tkg

Current results for minimal.fo:

==1300==    LEAK SUMMARY:
==1300==    definitely lost: 2,151 bytes in 7 blocks.
==1300==    indirectly lost: 273 bytes in 11 blocks.
==1300==      possibly lost: 50,528 bytes in 56 blocks.
==1300==    still reachable: 2,018,671 bytes in 18,711 blocks.
==1300==         suppressed: 0 bytes in 0 blocks.

10/03/07 22:11:12 changed by tkg

(In [221]) Reworked fo_context_finalize() to set property values to NULL. (Re #76.)

10/03/07 22:20:15 changed by tkg

(In [223]) Added unref of value on finalize. (Re #76.)

10/03/07 22:21:31 changed by tkg

(In [224]) Reworked _finalize() to set properties to NULL. (Re #76.)

10/11/07 12:56:03 changed by tkg

  • status changed from new to closed.
  • resolution set to fixed.

A slight improvement when processing xmlroff.fo with xmlroff 0.5.3:

==20841== LEAK SUMMARY:
==20841==    definitely lost: 2,348 bytes in 27 blocks.
==20841==    indirectly lost: 256 bytes in 11 blocks.
==20841==      possibly lost: 345,600 bytes in 316 blocks.
==20841==    still reachable: 9,779,291 bytes in 72,240 blocks.
==20841==         suppressed: 0 bytes in 0 blocks.

10/11/07 19:14:42 changed by tkg

(In [251]) Added support for linefeed-treatment and white-space-collapse (re #79). Added freeing properties on _finalize() (re #76).