[Libreoffice-bugs] [Bug 111892] New: Memory Leak in sd::TemplateScanner::ScanEntry()

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 18 07:13:37 UTC 2017


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

            Bug ID: 111892
           Summary: Memory Leak in sd::TemplateScanner::ScanEntry()
           Product: LibreOffice
           Version: 6.0.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: iplaw67 at tuta.io

Description:
sd::TemplateScanner::ScanEntry() leaks memory (or rather, doesn't release
memory correctly)

Steps to Reproduce:
Steps to Reproduce:
1. Start XCode, then Instruments.app
2. Choose Memory Leak profile tool
3. Select LibreOffice.app in instdir as target process
4. Click on the record button, LODev is started by the profiling tool
5. Wait for the StartCenter to load.
6. Click on the Impress button to load a new Impress document. 
7. Cancel the template selection to accept a default blank template.
8. In the sidebar, click on the Switch Master Template button.
9. Close the Impress document without saving.
10. Stop recording

Actual Results:  
Notice how sd::TemplateScanner::ScanEntry() allocates multiple memory blocks,
but doesn't release them:

Malloc 16 Bytes    12    < multiple >    192 Bytes    libsdlo.dylib   
sd::TemplateScanner::ScanEntry()

Expected Results:
It should not leak memory


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0)
Gecko/20100101 Firefox/54.0

-- 
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/20170818/049743c9/attachment.html>


More information about the Libreoffice-bugs mailing list