atmodem: fix memory leak

This commit is contained in:
Jeevaka Badrappan 2011-01-29 10:21:21 -08:00 committed by Denis Kenzior
parent ae9feb72e9
commit e4ef929aee
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ static void at_sim_read_info(struct ofono_sim *sim, int fileid,
at_crsm_info_cb, cbd, g_free) > 0)
return;
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, -1, -1, -1, NULL,
EF_STATUS_INVALIDATED, data);
}