Commit b4c365b1 authored by Beniamino Galvani's avatar Beniamino Galvani

wifi-dialog: fix wrong free

Fixes: 755cc564

#43
parent 5ea93c54
Pipeline #60278 passed with stages
in 13 minutes and 1 second
...@@ -1260,7 +1260,7 @@ nma_wifi_dialog_get_connection (NMAWifiDialog *self, ...@@ -1260,7 +1260,7 @@ nma_wifi_dialog_get_connection (NMAWifiDialog *self,
s_wireless = (NMSettingWireless *) nm_setting_wireless_new (); s_wireless = (NMSettingWireless *) nm_setting_wireless_new ();
ssid = validate_dialog_ssid (self); ssid = validate_dialog_ssid (self);
g_object_set (s_wireless, NM_SETTING_WIRELESS_SSID, ssid, NULL); g_object_set (s_wireless, NM_SETTING_WIRELESS_SSID, ssid, NULL);
g_free (ssid); g_bytes_unref (ssid);
if (priv->operation == OP_CREATE_ADHOC) { if (priv->operation == OP_CREATE_ADHOC) {
NMSetting *s_ip4; NMSetting *s_ip4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment