Summary: | Memory leak in poppler-document | ||
---|---|---|---|
Product: | poppler | Reporter: | Carlos Garcia Campos <carlosgc> |
Component: | glib frontend | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Patch
Updated patch |
Description
Carlos Garcia Campos
2007-01-13 09:05:28 UTC
Created attachment 8391 [details] [review] Patch There is no reason why time had to be a pointer, so this patch uses directly a struct tm instead of a pointer which fixes the leak. Created attachment 8500 [details] [review] Updated patch I've found another memleak in poppler-document: ==12925== 278 bytes in 15 blocks are definitely lost in loss record 168 of 333 ==12925== at 0x4021396: malloc (vg_replace_malloc.c:149) ==12925== by 0x51EFFF5: g_malloc (gmem.c:131) ==12925== by 0x5203448: g_strdup (gstrfuncs.c:91) ==12925== by 0x51D36EB: g_filename_from_uri (gconvert.c:1797) ==12925== by 0x45F61CF: poppler_document_save (poppler-document.cc:217) ==12925== by 0x8097146: pdf_document_save(_EvDocument*, char const*, _GError**) (ev-poppler.cc:248) ==12925== by 0x8092210: ev_document_save (ev-document.c:136) ==12925== by 0x807AA7F: file_save_dialog_response_cb (ev-window.c:1676) ==12925== by 0x5191542: g_cclosure_marshal_VOID(i_xx_t) (gmarshal.c:216) ==12925== by 0x5182F8A: g_closure_invoke (gclosure.c:490) ==12925== by 0x519476A: signal_emit_unlocked_R (gsignal.c:2438) ==12925== by 0x5195BE2: g_signal_emit_valist (gsignal.c:2197) Here is an updated patch that fixes both. Applied |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.