To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=94041
                 Issue #|94041
                 Summary|unoxml: leak in xpath code
               Component|framework
                 Version|DEV300m30
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mba
             Reported by|cmc





------- Additional comments from [EMAIL PROTECTED] Thu Sep 18 14:32:59 +0000 
2008 -------
There are calls to xmlXPathEval but not to xmlXPathFreeObject on the result,
i.e. valgrind trace of...

==4609== 1,672 (1,368 direct, 304 indirect) bytes in 19 blocks are definitely
lost in loss record 181 of 272
==4609==    at 0x4A0739E: malloc (vg_replace_malloc.c:207)
==4609==    by 0x3A41482BEE: xmlXPathWrapNodeSet (in 
/usr/lib64/libxml2.so.2.7.1)
==4609==    by 0x3A41490FD3: (within /usr/lib64/libxml2.so.2.7.1)
==4609==    by 0x3A4148F1E0: (within /usr/lib64/libxml2.so.2.7.1)
==4609==    by 0x3A4148F93E: (within /usr/lib64/libxml2.so.2.7.1)
==4609==    by 0x3A41491EAC: (within /usr/lib64/libxml2.so.2.7.1)
==4609==    by 0x3A41494E52: xmlXPathEval (in /usr/lib64/libxml2.so.2.7.1)
==4609==    by 0x1CEE0D6F: (within
/usr/lib64/openoffice.org/basis3.0/program/libunoxmllx.so)
==4609==    by 0x1CEE01E4: (within
/usr/lib64/openoffice.org/basis3.0/program/libunoxmllx.so)
==4609==    by 0x1CEE0181: (within
/usr/lib64/openoffice.org/basis3.0/program/libunoxmllx.so)
==4609==    by 0x5EFF2D8: (anonymous
namespace)::SfxDocumentMetaData::init(com::sun::star::uno::Reference<com::sun::star::xml::dom::XDocument>)
(SfxDocumentMetaData.cxx:1167)
==4609==    by 0x5F01CDB: (anonymous
namespace)::SfxDocumentMetaData::SfxDocumentMetaData(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) (SfxDocumentMetaData.cxx:1320)

The following patch to use a boost shared_ptr with a xmlXPathFreeObject
deallocator should do the trick. Seems to here anyway.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to