mirror of git://git.sysmocom.de/ofono
atmodem: fix memory leak
This commit is contained in:
parent
ae9feb72e9
commit
e4ef929aee
|
@ -157,6 +157,8 @@ static void at_sim_read_info(struct ofono_sim *sim, int fileid,
|
||||||
at_crsm_info_cb, cbd, g_free) > 0)
|
at_crsm_info_cb, cbd, g_free) > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
g_free(cbd);
|
||||||
|
|
||||||
CALLBACK_WITH_FAILURE(cb, -1, -1, -1, NULL,
|
CALLBACK_WITH_FAILURE(cb, -1, -1, -1, NULL,
|
||||||
EF_STATUS_INVALIDATED, data);
|
EF_STATUS_INVALIDATED, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue