Skip to content

gio: Fix leak of resolved DNS addresses on error

Martin Nordholts requested to merge martn-axis/glib:fix-addresses-leak into main

In the happy case the ownership of the list of resolved addresses are transferred to g_network_address_address_enumerator_add_addresses(). But in the error case we must free the list ourselves, since no one else takes ownership of it. Otherwise there will be a memory leak.

Change-Id: I77ca2540c3c0856c22d7c797a57d5fa1a907c585

Merge request reports