diff --git a/src/simutil.c b/src/simutil.c index 0fcfc092..7a23c977 100644 --- a/src/simutil.c +++ b/src/simutil.c @@ -1549,6 +1549,12 @@ gboolean sim_cphs_is_active(unsigned char *cphs, enum sim_cphs_service index) return ((cphs[index / 4] >> ((index % 4) * 2)) & 3) == 3; } +void sim_app_record_free(struct sim_app_record *app) +{ + g_free(app->label); + g_free(app); +} + GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len) { GSList *ret = NULL; diff --git a/src/simutil.h b/src/simutil.h index e0b9d72a..14a39957 100644 --- a/src/simutil.h +++ b/src/simutil.h @@ -517,6 +517,7 @@ gboolean sim_sst_is_active(unsigned char *service_sst, unsigned char len, gboolean sim_cphs_is_active(unsigned char *service_cphs, enum sim_cphs_service index); +void sim_app_record_free(struct sim_app_record *app); GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len); int sim_build_umts_authenticate(unsigned char *buffer, int len,