Low-level core library that forms the basis for projects such as GTK+ and GNOME.
Go to file
Tobias Mueller 79225a62c0 gthash: free cmph objects
If not done, it would leak the memory as address sanitizer reports:

==1294==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x7fa7a94b7602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x44c7a7 in __config_new girepository/cmph/cmph_structs.c:11
    #2 0x44aaa7 in cmph_config_new girepository/cmph/cmph.c:291
    #3 0x446fb5 in _gi_typelib_hash_builder_prepare girepository/gthash.c:114
    #4 0x406cf7 in add_directory_index_section girepository/girmodule.c:270
    #5 0x409ee6 in _g_ir_module_build_typelib girepository/girmodule.c:546
    #6 0x404ada in main tools/compiler.c:217
    #7 0x7fa7a70d482f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

==4091==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x7fc20c854602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x44a3f3 in cmph_io_vector_new girepository/cmph/cmph.c:228
    #2 0x44a965 in cmph_io_vector_adapter girepository/cmph/cmph.c:276
    #3 0x446f9f in _gi_typelib_hash_builder_prepare girepository/gthash.c:113
    #4 0x406cf7 in add_directory_index_section girepository/girmodule.c:270
    #5 0x409ee6 in _g_ir_module_build_typelib girepository/girmodule.c:546
    #6 0x404ada in main tools/compiler.c:217
    #7 0x7fc20a47182f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
2016-09-12 16:54:53 +02:00
cmph Fix code style 2016-03-17 17:39:43 +08:00
cmph-bdz-test.c Drop calls to g_type_init() 2012-10-16 10:58:08 -04:00
docs.c docs: fix up reference docs a bit 2013-10-10 16:48:51 -04:00
gdump.c gdump: do not leak gfile objects 2016-05-08 15:35:13 -04:00
gi-dump-types.c Drop calls to g_type_init() 2012-10-16 10:58:08 -04:00
giarginfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
giarginfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gibaseinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
gibaseinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gicallableinfo.c docs: Clarify return value documentation 2016-05-18 23:12:13 +01:00
gicallableinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giconstantinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
giconstantinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gienuminfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
gienuminfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gifieldinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
gifieldinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gifunctioninfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
gifunctioninfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giinterfaceinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
giinterfaceinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
ginvoke.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
giobjectinfo.c girepository: Use constant time calculation for sections after Object fields 2015-10-10 17:41:24 -04:00
giobjectinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gipropertyinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
gipropertyinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giregisteredtypeinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
giregisteredtypeinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
girepository-private.h girepository: Use g_atomic for refcounting 2013-04-02 12:10:33 -04:00
girepository.c girepository: Merge overrides with the regular search path 2016-05-02 16:20:31 +02:00
girepository.h girepository: Add g_irepository_get_immediate_dependencies() 2015-02-16 08:49:28 +00:00
girffi.c docs: fix up reference docs a bit 2013-10-10 16:48:51 -04:00
girffi.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
girmodule.c girepository: Use constant time calculation for sections after Object fields 2015-10-10 17:41:24 -04:00
girmodule.h Add Emacs mode lines to C sources 2012-02-03 13:42:56 -05:00
girnode.c girepository: Use constant time calculation for sections after Object fields 2015-10-10 17:41:24 -04:00
girnode.h girepository: Use constant time calculation for sections after Object fields 2015-10-10 17:41:24 -04:00
giroffsets.c docs: fix up reference docs a bit 2013-10-10 16:48:51 -04:00
girparser.c girparser: Avoid a crash with an unset transfer annotation 2015-10-04 12:00:23 -04:00
girparser.h Add Emacs mode lines to C sources 2012-02-03 13:42:56 -05:00
girwriter.c girepository: Support GError exceptions on callbacks 2015-06-21 13:01:25 -07:00
girwriter.h Add Emacs mode lines to C sources 2012-02-03 13:42:56 -05:00
gisignalinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
gisignalinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gistructinfo.c girepository: Add g_struct_info_find_field() 2015-06-21 13:01:25 -07:00
gistructinfo.h girepository: Add g_struct_info_find_field() 2015-06-21 13:01:25 -07:00
gitypeinfo.c gitypeinfo: Expand documentation for g_type_info_is_pointer() 2015-09-26 11:37:15 -04:00
gitypeinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gitypelib-internal.h girepository: Use constant time calculation for sections after Object fields 2015-10-10 17:41:24 -04:00
gitypelib.c repository: Fix format string error in previous commit 2015-10-12 12:15:53 -04:00
gitypelib.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gitypes.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giunioninfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
giunioninfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giversionmacros.h girepository: Add g_irepository_get_immediate_dependencies() 2015-02-16 08:49:28 +00:00
givfuncinfo.c girepository: Include config.h First in All Sources 2014-07-07 09:24:12 +08:00
givfuncinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gthash-test.c Drop calls to g_type_init() 2012-10-16 10:58:08 -04:00
gthash.c gthash: free cmph objects 2016-09-12 16:54:53 +02:00