mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
gthreadedresolver: Fix leak on error path
Signed-off-by: Philip Withnall <pwithnall@gnome.org> Fixes: #3236
This commit is contained in:
parent
5f345a2653
commit
8da4fc17b9
@ -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