<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Memory Leak in sd::TemplateScanner::ScanEntry()"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111892">111892</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Memory Leak in sd::TemplateScanner::ScanEntry()
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Impress
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>iplaw67@tuta.io
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</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>