diff options
-rw-r--r-- | plugins/mm-modem-mbm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c index 0344b089..43302e9b 100644 --- a/plugins/mm-modem-mbm.c +++ b/plugins/mm-modem-mbm.c @@ -580,11 +580,12 @@ mbm_e2nap_received (MMSerialPort *port, gpointer user_data) { int state = 0; - const char *str; + char *str; str = g_match_info_fetch (info, 1); if (str) state = atoi (str); + g_free (str); if (MBM_E2NAP_DISCONNECTED == state) { g_debug ("%s: disconnected", __func__); |