mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Merge branch '3236-resolver-error-leak' into 'main'
gthreadedresolver: Fix leak on error path Closes #3236 See merge request GNOME/glib!3862
This commit is contained in:
commit
3b7df5e25d
@ -1592,6 +1592,7 @@ threaded_resolver_worker_cb (gpointer task_data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_clear_pointer (&addresses, g_resolver_free_addresses);
|
g_clear_pointer (&addresses, g_resolver_free_addresses);
|
||||||
|
g_clear_error (&local_error);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LOOKUP_BY_ADDRESS:
|
case LOOKUP_BY_ADDRESS:
|
||||||
@ -1613,6 +1614,7 @@ threaded_resolver_worker_cb (gpointer task_data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_clear_pointer (&name, g_free);
|
g_clear_pointer (&name, g_free);
|
||||||
|
g_clear_error (&local_error);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LOOKUP_RECORDS:
|
case LOOKUP_RECORDS:
|
||||||
@ -1635,6 +1637,7 @@ threaded_resolver_worker_cb (gpointer task_data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_clear_pointer (&records, free_records);
|
g_clear_pointer (&records, free_records);
|
||||||
|
g_clear_error (&local_error);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user