mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 14:48:10 +02:00
platform/wifi: do not double-free nl_msg
In some places, there was an unneeded call to nlmsg_free () for messages declared with the nm_auto_nlmsg macro.
This commit is contained in:
parent
581ce347fb
commit
cdbd99c5d5
1 changed files with 2 additions and 6 deletions
|
|
@ -250,8 +250,7 @@ wifi_nl80211_set_mode (WifiData *data, const NM80211Mode mode)
|
||||||
err = nl80211_send_and_recv (nl80211, msg, NULL, NULL);
|
err = nl80211_send_and_recv (nl80211, msg, NULL, NULL);
|
||||||
return err >= 0;
|
return err >= 0;
|
||||||
|
|
||||||
nla_put_failure:
|
nla_put_failure:
|
||||||
nlmsg_free (msg);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -269,7 +268,6 @@ wifi_nl80211_set_powersave (WifiData *data, guint32 powersave)
|
||||||
return err >= 0;
|
return err >= 0;
|
||||||
|
|
||||||
nla_put_failure:
|
nla_put_failure:
|
||||||
nlmsg_free (msg);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -542,8 +540,7 @@ nl80211_get_ap_info (WifiDataNl80211 *nl80211,
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nla_put_failure:
|
nla_put_failure:
|
||||||
nlmsg_free (msg);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -597,7 +594,6 @@ wifi_nl80211_indicate_addressing_running (WifiData *data, gboolean running)
|
||||||
return err >= 0;
|
return err >= 0;
|
||||||
|
|
||||||
nla_put_failure:
|
nla_put_failure:
|
||||||
nlmsg_free (msg);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue