From ce1c72152b3488c06e5f01aa6b0dbd9ffcb918a4 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 9 Mar 2010 21:56:57 -0800 Subject: [PATCH] mbm: fix memory leak in connection state processing --- plugins/mm-modem-mbm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__);