Commit a043b0b4 authored by Beniamino Galvani's avatar Beniamino Galvani
Browse files

wwan: fix memory leaks

parent 7203769f
......@@ -861,7 +861,7 @@ static gboolean
static_stage3_ip4_done (NMModemBroadband *self)
{
GError *error = NULL;
NMIP4Config *config = NULL;
gs_unref_object NMIP4Config *config = NULL;
const char *data_port;
const gchar *address_string;
const gchar *gw_string;
......
......@@ -1412,9 +1412,11 @@ set_property (GObject *object, guint prop_id,
priv->driver = g_value_dup_string (value);
break;
case PROP_CONTROL_PORT:
/* Construct only */
priv->control_port = g_value_dup_string (value);
break;
case PROP_DATA_PORT:
g_free (priv->data_port);
priv->data_port = g_value_dup_string (value);
break;
case PROP_UID:
......
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