diff --git a/src/pw3270/common/config.c b/src/pw3270/common/config.c index 4a3d814..180b3a2 100644 --- a/src/pw3270/common/config.c +++ b/src/pw3270/common/config.c @@ -539,6 +539,7 @@ void configuration_deinit(void) g_file_set_contents(filename,text,-1,NULL); + g_free(filename); g_free(text); } diff --git a/src/pw3270/valgrind.suppression b/src/pw3270/valgrind.suppression index e3d24a7..4e1e4c8 100644 --- a/src/pw3270/valgrind.suppression +++ b/src/pw3270/valgrind.suppression @@ -1,118 +1,70 @@ { - Leak on main - Memcheck:Leak - fun:malloc - fun:__vasprintf_chk - fun:g_vasprintf - fun:(below main) -} - -{ - libfontconfig.so.Addr4 - Memcheck:Addr4 - obj:/usr/lib/libfontconfig.so.* -} - -{ - libfontconfig.so.malloc - Memcheck:Leak - fun:malloc - obj:/usr/lib/libfontconfig.so.* -} - -{ - libglib-calloc - Memcheck:Leak - fun:calloc - obj:/usr/lib/libglib-* -} - -{ - g_type_register_fundamental + GTK Init Memcheck:Leak ... - fun:g_type_register_fundamental + fun:gtk_init } { - g_vfs_get_file_for_path + GTK Type Init Memcheck:Leak ... - fun:g_vfs_get_file_for_path + fun:g_type_init_with_debug_flags } { - g_type_register_static + GTK Widget get type Memcheck:Leak ... - fun:g_type_register_static + fun:gtk_widget_get_type } { - libxcb.so.malloc + GTK Class REF Memcheck:Leak ... - obj:/usr/lib/libxcb.so.* + fun:g_type_class_ref } { - gtk_module_init + GType Add static interface Memcheck:Leak ... - obj:/usr/lib/libgtk-* + fun:g_type_add_interface_static } { - g_type_create_instance + GType Add dynamic interface Memcheck:Leak ... - obj:/usr/lib/libgobject-* + fun:g_type_add_interface_dynamic } { - Strange leak in main + GType set qdata Memcheck:Leak - fun:malloc - fun:__vasprintf_chk - fun:g_vasprintf - fun:main -} - -{ - libfontconfig - Memcheck:Leak - fun:realloc - obj:/usr/lib/libfontconfig.so.1.4.4 ... + fun:g_type_set_qdata } { - XIGrabDevice - Memcheck:Addr4 - fun:memcpy - fun:XIGrabDevice + GType set qdata + Memcheck:Leak ... + fun:gtk_widget_create_pango_context } { - gdk_window_get_root_coords - Memcheck:Cond - fun:gdk_window_get_root_coords + GType register static + Memcheck:Leak ... + fun:g_type_register_static } { - g_cclosure_marshal_VOID__BOXED - Memcheck:Cond - ... - fun:g_cclosure_marshal_VOID__BOXED + GType register dynamic + Memcheck:Leak ... + fun:g_type_register_dynamic } -{ - gdk_window_destroy - Memcheck:Cond - ... - fun:gdk_window_destroy - ... -} -- libgit2 0.21.2