Commit 94cebfcc authored by Pekka Pessi's avatar Pekka Pessi

sresolv/sres.c: fixed reference counting problems with sres_config_t.

parent 18c4d6f0
......@@ -1443,6 +1443,9 @@ sres_resolver_destructor(void *arg)
sres_servers_close(res, res->res_servers);
if (res->res_config)
su_home_unref((su_home_t *)res->res_config->c_home);
if (res->res_updcb)
res->res_updcb(res->res_async, -1, -1);
......@@ -1901,7 +1904,7 @@ static
sres_config_t *sres_parse_resolv_conf(sres_resolver_t *res,
char const **options)
sres_config_t *c = su_home_clone(res->res_home, (sizeof *c));
sres_config_t *c = su_home_new(sizeof *c);
if (c) {
FILE *f;
Markdown is supported
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