feat: add some free, this changes the sum but is still wrong
This commit is contained in:
parent
31e44a8da2
commit
5719752a76
1 changed files with 4 additions and 1 deletions
|
|
@ -132,6 +132,7 @@ void read_updates_from_file(int ***updates, const char *filename) {
|
||||||
if (!is_updates) {
|
if (!is_updates) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
char **tokens = str_split(buffer, ',');
|
char **tokens = str_split(buffer, ',');
|
||||||
int *values = NULL;
|
int *values = NULL;
|
||||||
if (arrlen(tokens) > 0) {
|
if (arrlen(tokens) > 0) {
|
||||||
|
|
@ -142,7 +143,9 @@ void read_updates_from_file(int ***updates, const char *filename) {
|
||||||
arrput(*updates, values);
|
arrput(*updates, values);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(tokens);
|
||||||
}
|
}
|
||||||
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void read_por_from_file(PageOrderingRules **pageOrderingRules, const char *filename) {
|
void read_por_from_file(PageOrderingRules **pageOrderingRules, const char *filename) {
|
||||||
|
|
@ -169,8 +172,8 @@ void read_por_from_file(PageOrderingRules **pageOrderingRules, const char *filen
|
||||||
arrput(current_values, value);
|
arrput(current_values, value);
|
||||||
hmput(*pageOrderingRules, key, current_values);
|
hmput(*pageOrderingRules, key, current_values);
|
||||||
}
|
}
|
||||||
|
free(tokens);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue