Skip to content

Leak fixes

Sebastian Keller requested to merge skeller/libgweather:leak-fixes into master

Fixes for these leaks in gnome-shell when opening the calendar:

==178251== 1,841 bytes in 263 blocks are definitely lost in loss record 28,202 of 29,794
==178251==    at 0x483980B: malloc (vg_replace_malloc.c:309)
==178251==    by 0x20B44D75: xmlStrndup (in /usr/lib64/libxml2.so.2.9.10)
==178251==    by 0x1FDC1F57: read_pressure (weather-yrno.c:245)
==178251==    by 0x1FDC1F57: read_child_node (weather-yrno.c:282)
==178251==    by 0x1FDC1F57: fill_info_from_node (weather-yrno.c:295)
==178251==    by 0x1FDC1F57: parse_forecast_xml_new (weather-yrno.c:354)
==178251==    by 0x1FDC1F57: yrno_finish_new (weather-yrno.c:415)
==178251==    by 0x1FDC1F57: yrno_finish_new (weather-yrno.c:387)
==178251==    by 0x20A58A1C: soup_session_process_queue_item (soup-session.c:2043)
==178251==    by 0x20A58A1C: soup_session_process_queue_item (soup-session.c:1965)
==178251==    by 0x20A593D0: async_run_queue (soup-session.c:2083)
==178251==    by 0x20A5945E: idle_run_queue (soup-session.c:2110)
==178251==    by 0x4D1E510: g_main_dispatch (gmain.c:3272)
==178251==    by 0x4D1E510: g_main_context_dispatch (gmain.c:3937)
==178251==    by 0x4D1E88F: g_main_context_iterate.isra.0 (gmain.c:4010)
==178251==    by 0x4D1EB92: g_main_loop_run (gmain.c:4204)
==178251==    by 0x58B55AB: meta_run (main.c:676)
==178251==    by 0x4027DC: main (main.c:552)

(and many more like it for all the different types of child nodes)

==178251== 89 bytes in 1 blocks are definitely lost in loss record 19,351 of 29,794
==178251==    at 0x483980B: malloc (vg_replace_malloc.c:309)
==178251==    by 0x4D242D0: g_malloc (gmem.c:102)
==178251==    by 0x4D3E2A0: g_strdup (gstrfuncs.c:363)
==178251==    by 0x1FDC1973: parse_forecast_xml_new (weather-yrno.c:379)
==178251==    by 0x1FDC1973: yrno_finish_new (weather-yrno.c:415)
==178251==    by 0x1FDC1973: yrno_finish_new (weather-yrno.c:387)
==178251==    by 0x20A58A1C: soup_session_process_queue_item (soup-session.c:2043)
==178251==    by 0x20A58A1C: soup_session_process_queue_item (soup-session.c:1965)
==178251==    by 0x20A593D0: async_run_queue (soup-session.c:2083)
==178251==    by 0x20A5945E: idle_run_queue (soup-session.c:2110)
==178251==    by 0x4D1E510: g_main_dispatch (gmain.c:3272)
==178251==    by 0x4D1E510: g_main_context_dispatch (gmain.c:3937)
==178251==    by 0x4D1E88F: g_main_context_iterate.isra.0 (gmain.c:4010)
==178251==    by 0x4D1EB92: g_main_loop_run (gmain.c:4204)
==178251==    by 0x58B55AB: meta_run (main.c:676)
==178251==    by 0x4027DC: main (main.c:552)

Merge request reports