Fix 2 leaks in queryloaders.c
The following leaks are fixed:
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7fb0d9ad92ff in malloc (/lib64/libasan.so.8+0xd92ff) (BuildId: bac59ca9f1e357781008d7f6982314d30ca62672)
#1 0x7fb0d99192d9 in g_malloc (/lib64/libglib-2.0.so.0+0x622d9) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#2 0x7fb0d9930614 in g_slice_alloc (/lib64/libglib-2.0.so.0+0x79614) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#3 0x7fb0d9937127 in g_string_sized_new (/lib64/libglib-2.0.so.0+0x80127) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#4 0x40389c in main ../gdk-pixbuf/queryloaders.c:408
#5 0x7fb0d952eb49 in __libc_start_call_main (/lib64/libc.so.6+0x27b49) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#6 0x7fb0d952ec0a in __libc_start_main_alias_2 (/lib64/libc.so.6+0x27c0a) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#7 0x402344 in _start (/home/maarten/projects/gdk-pixbuf/build/gdk-pixbuf/gdk-pixbuf-query-loaders+0x402344) (BuildId: 4121863aba136720aae7ee0f3ff68a47b4d24e62)
Indirect leak of 256 byte(s) in 1 object(s) allocated from:
#0 0x7fb0d9ad81f5 in __interceptor_realloc.part.0 (/lib64/libasan.so.8+0xd81f5) (BuildId: bac59ca9f1e357781008d7f6982314d30ca62672)
#1 0x7fb0d991a0ca in g_realloc (/lib64/libglib-2.0.so.0+0x630ca) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#2 0x7fb0d99370d9 in g_string_expand (/lib64/libglib-2.0.so.0+0x800d9) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#3 0x7fb0d993985a in g_string_append_vprintf (/lib64/libglib-2.0.so.0+0x8285a) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#4 0x7fb0d9939a19 in g_string_append_printf (/lib64/libglib-2.0.so.0+0x82a19) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#5 0x4038e5 in main ../gdk-pixbuf/queryloaders.c:411
#6 0x7fb0d952eb49 in __libc_start_call_main (/lib64/libc.so.6+0x27b49) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#7 0x7fb0d952ec0a in __libc_start_main_alias_2 (/lib64/libc.so.6+0x27c0a) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#8 0x402344 in _start (/home/maarten/projects/gdk-pixbuf/build/gdk-pixbuf/gdk-pixbuf-query-loaders+0x402344) (BuildId: 4121863aba136720aae7ee0f3ff68a47b4d24e62)
There are still 2 leaks, but I don't know how to fix these:
Direct leak of 96 byte(s) in 1 object(s) allocated from:
#0 0x7fb0d9ad8cd7 in calloc (/lib64/libasan.so.8+0xd8cd7) (BuildId: bac59ca9f1e357781008d7f6982314d30ca62672)
#1 0x7fb0d9919fa1 in g_malloc0 (/lib64/libglib-2.0.so.0+0x62fa1) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#2 0x7fb0da12c35e in g_type_create_instance (/lib64/libgobject-2.0.so.0+0x3f35e) (BuildId: b55c92f031fedd072e70033d85328db5ff5ea9e2)
#3 0x7fb0da111f73 in g_object_new_internal.part.0 (/lib64/libgobject-2.0.so.0+0x24f73) (BuildId: b55c92f031fedd072e70033d85328db5ff5ea9e2)
#4 0x7fb0da113595 in g_object_new_with_properties (/lib64/libgobject-2.0.so.0+0x26595) (BuildId: b55c92f031fedd072e70033d85328db5ff5ea9e2)
#5 0x7fb0da114460 in g_object_new (/lib64/libgobject-2.0.so.0+0x27460) (BuildId: b55c92f031fedd072e70033d85328db5ff5ea9e2)
#6 0x7fb0d9764033 in g_io_module_new (/lib64/libgio-2.0.so.0+0x7f033) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#7 0x7fb0d976434d in g_io_modules_scan_all_in_directory_with_scope (/lib64/libgio-2.0.so.0+0x7f34d) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#8 0x7fb0d976a400 in _g_io_modules_ensure_loaded.part.0 (/lib64/libgio-2.0.so.0+0x85400) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#9 0x7fb0d976ac40 in _g_io_module_get_default (/lib64/libgio-2.0.so.0+0x85c40) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#10 0x7fb0d97a61a4 in g_vfs_get_default (/lib64/libgio-2.0.so.0+0xc11a4) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#11 0x7fb0d9750109 in g_file_new_for_path (/lib64/libgio-2.0.so.0+0x6b109) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#12 0x4037fe in main ../gdk-pixbuf/queryloaders.c:331
#13 0x7fb0d952eb49 in __libc_start_call_main (/lib64/libc.so.6+0x27b49) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#14 0x7fb0d952ec0a in __libc_start_main_alias_2 (/lib64/libc.so.6+0x27c0a) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#15 0x402344 in _start (/home/maarten/projects/gdk-pixbuf/build/gdk-pixbuf/gdk-pixbuf-query-loaders+0x402344) (BuildId: 4121863aba136720aae7ee0f3ff68a47b4d24e62)
Indirect leak of 43 byte(s) in 1 object(s) allocated from:
#0 0x7fb0d9ad92ff in malloc (/lib64/libasan.so.8+0xd92ff) (BuildId: bac59ca9f1e357781008d7f6982314d30ca62672)
#1 0x7fb0d99192d9 in g_malloc (/lib64/libglib-2.0.so.0+0x622d9) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#2 0x7fb0d99309e8 in g_strdup (/lib64/libglib-2.0.so.0+0x799e8) (BuildId: 4477ca37e3b61bca6e9aba802b32cba8890d2c3c)
#3 0x7fb0d976403e in g_io_module_new (/lib64/libgio-2.0.so.0+0x7f03e) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#4 0x7fb0d976434d in g_io_modules_scan_all_in_directory_with_scope (/lib64/libgio-2.0.so.0+0x7f34d) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#5 0x7fb0d976a400 in _g_io_modules_ensure_loaded.part.0 (/lib64/libgio-2.0.so.0+0x85400) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#6 0x7fb0d976ac40 in _g_io_module_get_default (/lib64/libgio-2.0.so.0+0x85c40) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#7 0x7fb0d97a61a4 in g_vfs_get_default (/lib64/libgio-2.0.so.0+0xc11a4) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#8 0x7fb0d9750109 in g_file_new_for_path (/lib64/libgio-2.0.so.0+0x6b109) (BuildId: 0a4212dc268b69a2ab4415e32b2353ca1e8aa3cc)
#9 0x4037fe in main ../gdk-pixbuf/queryloaders.c:331
#10 0x7fb0d952eb49 in __libc_start_call_main (/lib64/libc.so.6+0x27b49) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#11 0x7fb0d952ec0a in __libc_start_main_alias_2 (/lib64/libc.so.6+0x27c0a) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)
#12 0x402344 in _start (/home/maarten/projects/gdk-pixbuf/build/gdk-pixbuf/gdk-pixbuf-query-loaders+0x402344) (BuildId: 4121863aba136720aae7ee0f3ff68a47b4d24e62)