- Fix small memory leak in error condition remote.c

- Fix double free in error condition view.c
This commit is contained in:
Ralph Dolmans 2020-01-30 14:56:48 +01:00
parent 5fcae2f0e0
commit 4f5b934688
3 changed files with 6 additions and 3 deletions

View file

@ -2527,6 +2527,7 @@ do_auth_zone_transfer(RES* ssl, struct worker* worker, char* arg)
if(!az || !auth_zones_startprobesequence(az, &worker->env, nm, nmlen, if(!az || !auth_zones_startprobesequence(az, &worker->env, nm, nmlen,
LDNS_RR_CLASS_IN)) { LDNS_RR_CLASS_IN)) {
(void)ssl_printf(ssl, "error zone xfr task not found %s\n", arg); (void)ssl_printf(ssl, "error zone xfr task not found %s\n", arg);
free(nm);
return; return;
} }
send_ok(ssl); send_ok(ssl);

View file

@ -1,6 +1,10 @@
30 January 2020: Ralph
- Fix memory leak in error condition remote.c
- Fix double free in error condition view.c
29 January 2020: Ralph 29 January 2020: Ralph
- Merge PR#156 from Alexander Berkes; Added unbound-control - Merge PR#156 from Alexander Berkes; Added unbound-control
view_local_datas_remove command. view_local_datas_remove command.
29 January 2020: Wouter 29 January 2020: Wouter
- Fix #157: undefined reference to `htobe64'. - Fix #157: undefined reference to `htobe64'.

View file

@ -198,8 +198,6 @@ views_apply_cfg(struct views* vs, struct config_file* cfg)
log_err("failed to insert " log_err("failed to insert "
"default zones into " "default zones into "
"local-zone list"); "local-zone list");
free(nd_str);
free(nd_type);
lock_rw_unlock(&v->lock); lock_rw_unlock(&v->lock);
return 0; return 0;
} }