git: 523c21a6ec64 - main - net/openmdns: amend the previous fix (add two more missing free() calls).
Alexey Dokuchaev
danfe at FreeBSD.org
Tue Jul 13 17:15:31 UTC 2021
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=523c21a6ec6468b29cf704f7bc3bfb26aaf3e0e0
commit 523c21a6ec6468b29cf704f7bc3bfb26aaf3e0e0
Author: Alexey Dokuchaev <danfe at FreeBSD.org>
AuthorDate: 2021-07-13 17:12:08 +0000
Commit: Alexey Dokuchaev <danfe at FreeBSD.org>
CommitDate: 2021-07-13 17:12:20 +0000
net/openmdns: amend the previous fix (add two more missing free() calls).
PR: 249296
---
net/openmdns/files/patch-mdnsd_mdns.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/net/openmdns/files/patch-mdnsd_mdns.c b/net/openmdns/files/patch-mdnsd_mdns.c
index 319ad7069259..a01c1ab456cd 100644
--- a/net/openmdns/files/patch-mdnsd_mdns.c
+++ b/net/openmdns/files/patch-mdnsd_mdns.c
@@ -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);
More information about the dev-commits-ports-all
mailing list