Commit cb8a4600 authored by venaas's avatar venaas Committed by venaas
Browse files

fixed a bug with freeing memory when dynamicserver fails

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@282 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 4dcf2264
......@@ -2411,6 +2411,7 @@ void *clientwr(void *arg) {
}
}
errexit:
conf->servers = NULL;
if (server->dynamiclookuparg) {
removeserversubrealms(realms, conf);
freeclsrvconf(conf);
......@@ -3246,8 +3247,7 @@ void freeclsrvconf(struct clsrvconf *conf) {
free(conf->rewrite);
if (conf->addrinfo)
freeaddrinfo(conf->addrinfo);
list_destroy(conf->clients);
free(conf->servers);
/* not touching clients and servers */
free(conf);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment