Free JSON data after use.

This commit is contained in:
Steveice10 2017-09-13 20:21:20 -07:00
parent 5be2bc0694
commit 56b5848247
2 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,8 @@ static void task_populate_titledb_thread(void* arg) {
} else {
res = R_FBI_BAD_DATA;
}
json_value_free(json);
} else {
res = R_FBI_PARSE_FAILED;
}

View File

@ -229,6 +229,8 @@ static void update_check_update(ui_view* view, void* data, float* progress, char
} else {
res = R_FBI_BAD_DATA;
}
json_value_free(json);
} else {
res = R_FBI_PARSE_FAILED;
}