Skip to content
Snippets Groups Projects
Commit 632c238e authored by rswindell's avatar rswindell
Browse files

Bug-fix: memory leak when parsing mailproc.ini, caught by valgrind.

parent b810377e
No related branches found
No related tags found
No related merge requests found
...@@ -1847,7 +1847,7 @@ static void smtp_thread(void* arg) ...@@ -1847,7 +1847,7 @@ static void smtp_thread(void* arg)
char str[512]; char str[512];
char tmp[128]; char tmp[128];
char value[INI_MAX_VALUE_LEN]; char value[INI_MAX_VALUE_LEN];
char** sec_list; str_list_t sec_list;
char* section; char* section;
char buf[1024],*p,*tp,*cp; char buf[1024],*p,*tp,*cp;
char hdrfield[512]; char hdrfield[512];
...@@ -4197,6 +4197,7 @@ void DLLCALL mail_server(void* arg) ...@@ -4197,6 +4197,7 @@ void DLLCALL mail_server(void* arg)
iniReadBool(fp,sec_list[i],"native",FALSE); iniReadBool(fp,sec_list[i],"native",FALSE);
} }
} }
iniFreeStringList(sec_list);
iniCloseFile(fp); iniCloseFile(fp);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment