mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 07:58:00 +02:00
ndisc/tests: fix reference counting in nm_fake_ndisc_new()
This adjusts the change from commitffbcf01589('test-ndisc-fake: free l3cfg after creating fake-ndisc'). ndisc_new() already correctly handles the reference count of l3cfg via "gs_unref_object". The party that took the wrong reference was nm_fake_ndisc_new(). Fixes:58287cbcc0('core: rework IP configuration in NetworkManager using layer 3 configuration') (cherry picked from commitda371f8108)
This commit is contained in:
parent
a69a52fd0a
commit
1b0d98ab55
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ NMNDisc *
|
|||
nm_fake_ndisc_new(NML3Cfg *l3cfg)
|
||||
{
|
||||
const NMNDiscConfig config = {
|
||||
.l3cfg = g_object_ref(NM_L3CFG(l3cfg)),
|
||||
.l3cfg = NM_L3CFG(l3cfg),
|
||||
.ifname = nm_l3cfg_get_ifname(l3cfg, TRUE),
|
||||
.node_type = NM_NDISC_NODE_TYPE_HOST,
|
||||
.stable_type = NM_UTILS_STABLE_TYPE_UUID,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue