mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-29 08:10:47 +02: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') (cherry picked from commit43748d2980)
This commit is contained in:
parent
e7753357ce
commit
fd41ff1d02
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