From accbffad337266c1f014251fe277d442564a04eb Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Mon, 5 Dec 2022 20:17:42 +0000 Subject: [PATCH] avahi-core: rearrange deallocations in avahi_time_event_queue_new a bit Reported by Coverity Scan. --- avahi-core/timeeventq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avahi-core/timeeventq.c b/avahi-core/timeeventq.c index 2799bf2..beceaff 100644 --- a/avahi-core/timeeventq.c +++ b/avahi-core/timeeventq.c @@ -135,10 +135,10 @@ AvahiTimeEventQueue* avahi_time_event_queue_new(const AvahiPoll *poll_api) { oom: if (q) { - avahi_free(q); - if (q->prioq) avahi_prio_queue_free(q->prioq); + + avahi_free(q); } return NULL; -- 2.45.2