This is related to issue 84965 (work item 186232).
The bugs identified in open_get_offered_capabilities are correct. open_get_offered_capabilities is implemented in amqp_definitions.c, which is autogenerated from amqp_definitions_c.tt. amqp_definitions_c.tt is also used to autogerate functions for other AMQP composite types. By fixing amqp_definitions_c.tt (function in lines 317 to 494) this double-free bug pattern is being addressed for:
This is related to issue 84965 (work item 186232).
The bugs identified in open_get_offered_capabilities are correct. open_get_offered_capabilities is implemented in amqp_definitions.c, which is autogenerated from amqp_definitions_c.tt. amqp_definitions_c.tt is also used to autogerate functions for other AMQP composite types. By fixing amqp_definitions_c.tt (function in lines 317 to 494) this double-free bug pattern is being addressed for: