mbm: fix memory leak in connection state processing

This commit is contained in:
Dan Williams
2010-03-09 21:56:57 -08:00
parent 82abd5595e
commit ce1c72152b

View File

@@ -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__);