diff options
author | Dan Williams <dcbw@redhat.com> | 2010-03-09 21:56:57 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-03-09 21:56:57 -0800 |
commit | ce1c72152b3488c06e5f01aa6b0dbd9ffcb918a4 (patch) | |
tree | 3190ea91d185a7a2df3cb4a5bf056f6e7a1d9d14 /plugins | |
parent | 82abd5595e41f8a2739590bfa52e687de98d9808 (diff) |
mbm: fix memory leak in connection state processing
Diffstat (limited to 'plugins')
-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__); |