avahi/SOURCES/0001-fix-memory-leak-in-wide-area-lookup.patch

25 lines
663 B
Diff
Raw Normal View History

2024-09-24 06:14:33 +00:00
From 93de55227583a149a375f529f3fafafae7c2c3bb Mon Sep 17 00:00:00 2001
From: Wei Li <wei.li@calix.com>
Date: Fri, 23 Dec 2022 17:02:53 +0800
Subject: [PATCH] fix memory leak in wide area lookup
---
avahi-core/wide-area.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c
index d5e64e5..971f5e7 100644
--- a/avahi-core/wide-area.c
+++ b/avahi-core/wide-area.c
@@ -564,6 +564,7 @@ static void socket_event(AVAHI_GCC_UNUSED AvahiWatch *w, int fd, AVAHI_GCC_UNUSE
if (p) {
handle_packet(e, p);
avahi_dns_packet_free(p);
+ avahi_cleanup_dead_entries(e->server);
}
}
--
2.45.2