Clean-up all memory on deinitialization of sec-mod and worker.

That will allow to easier spot any unintentional memory leaks.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-15 15:36:03 +02:00
parent b62c14f613
commit 739a2126d0
10 changed files with 116 additions and 64 deletions
+2
View File
@@ -220,6 +220,8 @@ typedef struct worker_st {
char* dns[MAX_ROUTES];
unsigned nbns_size;
char* nbns[MAX_ROUTES];
void *main_pool; /* to be used only on deinitialization */
} worker_st;
void vpn_server(struct worker_st* ws);