fix: mem leak, test: config parsing until 300000lines and over 1 million structs
This commit is contained in:
5
config.h
5
config.h
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user