This commit is contained in:
Олег Бородин
2023-09-05 11:30:10 +02:00
parent 77bd507ae8
commit e9b9df0356
15 changed files with 423 additions and 562 deletions

View File

@@ -174,5 +174,12 @@ int cfparser_parse(cfparser_t * parser) {
void cfparser_destroy(cfparser_t * parser) {
free(parser->kvalarr);
if (parser == NULL) return;
if (parser->kvalarr != NULL) {
for (int i = 0; i < parser->kvalsize; i++) {
free(parser->kvalarr[i].key);
free(parser->kvalarr[i].val);
}
free(parser->kvalarr);
}
}