gsm: free the string allocated by utils_hexstr2bin().
Change-Id: I1f7dabc8209d9757b573a59abb788a2346f72ad5
This commit is contained in:
committed by
Dan Williams
parent
a1378ae8e8
commit
f7dff81eec
@@ -1801,6 +1801,7 @@ get_mnc_length_done (MMAtSerialPort *port,
|
||||
MM_MODEM_ERROR_GENERAL,
|
||||
"SIM returned malformed response '%s'",
|
||||
hex);
|
||||
g_free (bin);
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -1815,6 +1816,7 @@ get_mnc_length_done (MMAtSerialPort *port,
|
||||
"SIM returned invalid MNC length %d (should be either 2 or 3)",
|
||||
mnc_len);
|
||||
}
|
||||
g_free (bin);
|
||||
} else {
|
||||
info->error = g_error_new (MM_MODEM_ERROR,
|
||||
MM_MODEM_ERROR_GENERAL,
|
||||
|
||||
Reference in New Issue
Block a user