device: fix memory leak

This commit is contained in:
Beniamino Galvani 2019-04-11 20:53:10 +02:00
parent ade14408d7
commit 82c74eb4e2

View file

@ -9948,7 +9948,7 @@ nm_device_activate_stage3_ip6_start (NMDevice *self)
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
NMActStageReturn ret;
NMDeviceStateReason failure_reason = NM_DEVICE_STATE_REASON_NONE;
NMIP6Config *ip6_config = NULL;
gs_unref_object NMIP6Config *ip6_config = NULL;
g_assert (priv->ip_state_6 == NM_DEVICE_IP_STATE_WAIT);