net/openmdns: amend the previous fix (add two more missing free() calls).
PR: 249296
This commit is contained in:
parent
45940e51f6
commit
523c21a6ec
1 changed files with 17 additions and 1 deletions
|
@ -21,7 +21,23 @@
|
|||
return (0);
|
||||
}
|
||||
/*
|
||||
@@ -186,14 +191,17 @@ cache_process(struct rr *rr)
|
||||
@@ -167,6 +172,7 @@ cache_process(struct rr *rr)
|
||||
log_warnx("cache_process: conflict for %s",
|
||||
rrs_str(&rr->rrs));
|
||||
conflict_resolve_by_rr(rr_aux);
|
||||
+ free(rr);
|
||||
return (-1);
|
||||
}
|
||||
}
|
||||
@@ -178,6 +184,7 @@ cache_process(struct rr *rr)
|
||||
log_warnx("cache_process: goodbye %s",
|
||||
rrs_str(&rr->rrs));
|
||||
cache_delete(rr_aux);
|
||||
+ free(rr);
|
||||
return (0);
|
||||
}
|
||||
/* Cache refresh */
|
||||
@@ -186,14 +193,17 @@ cache_process(struct rr *rr)
|
||||
rr_aux->ttl = rr->ttl;
|
||||
rr_aux->revision = 0;
|
||||
cache_schedrev(rr_aux);
|
||||
|
|
Loading…
Reference in a new issue