mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-26 18:10:37 +01:00
libnm: fix memleak of GUdevDevice in get_bus_name()
Fixes:f7b1b28202(cherry picked from commitc033330c41) (cherry picked from commit6311bf6666) (cherry picked from commit42eb57c0c1) (cherry picked from commit90d341e300)
This commit is contained in:
parent
99e829d543
commit
3a6fe7b048
2 changed files with 2 additions and 0 deletions
|
|
@ -1876,6 +1876,7 @@ get_bus_name (NMDevice *device)
|
|||
*/
|
||||
priv->bus_name = g_strdup ("");
|
||||
}
|
||||
g_object_unref (udevice);
|
||||
|
||||
out:
|
||||
if (*priv->bus_name)
|
||||
|
|
|
|||
|
|
@ -1721,6 +1721,7 @@ get_bus_name (NMDevice *device)
|
|||
*/
|
||||
priv->bus_name = g_strdup ("");
|
||||
}
|
||||
g_object_unref (udevice);
|
||||
|
||||
out:
|
||||
if (*priv->bus_name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue