mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 19:50:14 +01:00
core/team: fix leak and uninitialized GError in NMDeviceTeam's constructed()
Found with `git grep 'GError.*[^,)];'| grep ' *= *NULL;' -v`
Fixes: d689380cfc ('team: support operation without D-Bus')
This commit is contained in:
parent
a628a35e80
commit
43748d2980
1 changed files with 1 additions and 1 deletions
|
|
@ -957,7 +957,7 @@ constructed(GObject *object)
|
|||
NMDeviceTeamPrivate *priv = NM_DEVICE_TEAM_GET_PRIVATE(device);
|
||||
gs_free char *tmp_str = NULL;
|
||||
gs_unref_object GFile *file = NULL;
|
||||
GError *error;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
G_OBJECT_CLASS(nm_device_team_parent_class)->constructed(object);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue