ussd: plug a leak
This commit is contained in:
@@ -5326,6 +5326,7 @@ decode_ussd_response (MMGenericGsm *self,
|
||||
char **items, **iter, *p;
|
||||
char *str = NULL;
|
||||
gint encoding = -1;
|
||||
char *decoded;
|
||||
|
||||
/* Look for the first ',' */
|
||||
p = strchr (reply, ',');
|
||||
@@ -5352,8 +5353,9 @@ decode_ussd_response (MMGenericGsm *self,
|
||||
if (p)
|
||||
*p = '\0';
|
||||
|
||||
return mm_modem_gsm_ussd_decode (MM_MODEM_GSM_USSD (self), str,
|
||||
cur_charset);
|
||||
decoded = mm_modem_gsm_ussd_decode (MM_MODEM_GSM_USSD (self), str, cur_charset);
|
||||
g_strfreev (items);
|
||||
return decoded;
|
||||
}
|
||||
|
||||
static char*
|
||||
|
Reference in New Issue
Block a user