fix: mem leak, test: config parsing until 300000lines and over 1 million structs

This commit is contained in:
jonathan santis
2025-05-20 15:27:49 +02:00
parent d07e4d9617
commit a834abc8e7
5 changed files with 156 additions and 98 deletions

View File

@@ -1,6 +1,6 @@
#define NO_SECTION 0
#define FOUND_SECTION 10
#define ERROR_STR 1
#define ERROR_STR 1001
#define ERROR_MAX_LEN 2
#define NO_ERROR 0
//ERROR DELIMITER
@@ -24,6 +24,9 @@
//LIMITS
#define MAX_LEN_SECTIONNAME 128
//error parseConfig
#define ERR_PARSECONFIG_UNKNOWN 201
struct configEntry
{
char *sectionName;