2019-04-22 03:51 BST

View Revisions: Issue #2579

Summary 0002579: Memory leak in a cache back-end
Revision 2018-01-20 16:20 by John-Mark Bell
Additional Information Fragment of the output of memtrail report:

leaked: 9,425,771B
  -> 64.22% (6,053,352B): calloc
  | -> 27.81% (2,621,440B): read_entries [./netsurf/content/fs_backing_store.c:1230]
  | | -> 27.81% (2,621,440B): hlcache_initialise [./netsurf/content/hlcache.c:535]
  | | -> 27.81% (2,621,440B): netsurf_init [./netsurf/desktop/netsurf.c:226]
  | | -> 27.81% (2,621,440B): main [./netsurf/frontends/gtk/gui.c:1178]
  | | -> 27.81% (2,621,440B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297]
  | | -> 27.81% (2,621,440B): _start
  | |
  | -> 22.25% (2,097,152B): build_entrymap [./netsurf/content/fs_backing_store.c:1148]
  | | -> 22.25% (2,097,152B): hlcache_initialise [./netsurf/content/hlcache.c:535]
  | | -> 22.25% (2,097,152B): netsurf_init [./netsurf/desktop/netsurf.c:226]
  | | -> 22.25% (2,097,152B): main [./netsurf/frontends/gtk/gui.c:1178]
  | | -> 22.25% (2,097,152B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297]
  | | -> 22.25% (2,097,152B): _start
  | |
...

Attached patch seems to fix the problem.
Revision 2017-12-06 14:38 by Felix S.
Additional Information Fragment of the output of memtrail report:

leaked: 9,425,771B
  -> 64.22% (6,053,352B): calloc
  | -> 27.81% (2,621,440B): read_entries [./netsurf/content/fs_backing_store.c:1230]
  | | -> 27.81% (2,621,440B): hlcache_initialise [./netsurf/content/hlcache.c:535]
  | | -> 27.81% (2,621,440B): netsurf_init [./netsurf/desktop/netsurf.c:226]
  | | -> 27.81% (2,621,440B): main [./netsurf/frontends/gtk/gui.c:1178]
  | | -> 27.81% (2,621,440B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297]
  | | -> 27.81% (2,621,440B): _start
  | |
  | -> 22.25% (2,097,152B): build_entrymap [./netsurf/content/fs_backing_store.c:1148]
  | | -> 22.25% (2,097,152B): hlcache_initialise [./netsurf/content/hlcache.c:535]
  | | -> 22.25% (2,097,152B): netsurf_init [./netsurf/desktop/netsurf.c:226]
  | | -> 22.25% (2,097,152B): main [./netsurf/frontends/gtk/gui.c:1178]
  | | -> 22.25% (2,097,152B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297]
  | | -> 22.25% (2,097,152B): _start
  | |
...

Attached patch seems to fix the problem.