<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Memory leak with duplicate font"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89952">89952</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Memory leak with duplicate font
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

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

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>cairo backend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jason@aquaticape.us
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=114946" name="attach_114946" title="PDF with duplicate TrueType fonts">attachment 114946</a> <a href="attachment.cgi?id=114946&action=edit" title="PDF with duplicate TrueType fonts">[details]</a></span>
PDF with duplicate TrueType fonts

Attached PDF has a duplicated font which causes a memory leak.  Output of
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=definite
pdftocairo -png pdf/CairoDoubleTrueType.pdf a :

==10368== 4,096 bytes in 1 blocks are definitely lost in loss record 129 of 137
==10368==    at 0x4C28C20: malloc (vg_replace_malloc.c:296)
==10368==    by 0x50553B8: gmalloc(unsigned long, bool) (gmem.cc:110)
==10368==    by 0x5055425: gmalloc (gmem.cc:120)
==10368==    by 0x4F45C04: Stream::toUnsignedChars(int*, int, int)
(Stream.h:147)
==10368==    by 0x4FA5036: GfxFont::readEmbFontFile(XRef*, int*)
(GfxFont.cc:908)
==10368==    by 0x41A3F1: CairoFreeTypeFont::create(GfxFont*, XRef*,
FT_LibraryRec_*, bool) (CairoFontEngine.cc:433)
==10368==    by 0x41B5CE: CairoFontEngine::getFont(GfxFont*, PDFDoc*, bool,
XRef*) (CairoFontEngine.cc:818)
==10368==    by 0x40E2F3: CairoOutputDev::updateFont(GfxState*)
(CairoOutputDev.cc:631)
==10368==    by 0x4F99E20: Gfx::opShowText(Object*, int) (Gfx.cc:3803)
==10368==    by 0x4F89F6B: Gfx::execOp(Object*, Object*, int) (Gfx.cc:904)
==10368==    by 0x4F8989C: Gfx::go(bool) (Gfx.cc:763)
==10368==    by 0x4F896D0: Gfx::display(Object*, bool) (Gfx.cc:729)</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>