~vcs-imports/file-roller/trunk

Viewing all changes in revision 4329.

  • Committer: David King
  • Author(s): David King
  • Date: 2016-09-06 15:54:11 UTC
  • Revision ID: git-v1:3d4a73661df2343d8e18a3f0b8fbe161237ca205
Fix a memory leak of the file content type

==23889== 42 bytes in 2 blocks are definitely lost in loss record 10,530 of 22,830
==23889==    at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
==23889==    by 0x73FD038: g_malloc (gmem.c:94)
==23889==    by 0x741520E: g_strdup (gstrfuncs.c:363)
==23889==    by 0x6E82031: g_content_type_guess (gcontenttype.c:719)
==23889==    by 0x41ADA2: file_data_update_content_type (file-data.c:99)
==23889==    by 0x420B33: fr_archive_add_file (fr-archive.c:2129)
==23889==    by 0x453F61: list_archive_thread (fr-archive-libarchive.c:399)
==23889==    by 0x6E50BF0: run_in_thread (gsimpleasyncresult.c:898)
==23889==    by 0x6E3D378: io_job_thread (gioscheduler.c:85)
==23889==    by 0x6E622EF: g_task_thread_pool_thread (gtask.c:1288)
==23889==    by 0x741DCA4: g_thread_pool_thread_proxy (gthreadpool.c:307)
==23889==    by 0x741D2C7: g_thread_proxy (gthread.c:780)
==23889==    by 0x7C7F6C9: start_thread (in /usr/lib64/libpthread-2.23.90.so)
==23889==    by 0x7F9CCCE: clone (in /usr/lib64/libc-2.23.90.so)

https://bugzilla.gnome.org/show_bug.cgi?id=766271

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: