Fix all memory leaks

This commit is contained in:
olemorud
2023-04-24 23:44:17 +02:00
parent 3b7cc458fc
commit 2eeaa2171f
4 changed files with 69 additions and 20 deletions

View File

@@ -16,9 +16,13 @@ int main(int argc, char* argv[])
FILE* fp = fopen(argv[1], "r");
volatile struct json_value x = parse_json_value(fp);
struct json_value x = parse_json_value(fp);
print_json(x, 1);
// print_json(x, 1);
json_value_delete(x);
fclose(fp);
return EXIT_SUCCESS;
}