From d53bda316be6ba226788b40e101a3bff5aa75a5f Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 29 Mar 2023 22:04:26 +0200
Subject: [PATCH] service: drop redundant unit_ref_unset() call

The immediately preceeding service_close_socket_fd() call does that
internally anyway. No need to do this again right after.

Conflict:NA
Reference:https://github.com/systemd/systemd/commit/d53bda316be6ba226788b40e101a3bff5aa75a5f

---
 src/core/service.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/core/service.c b/src/core/service.c
index d73feb363e..c4a7be890d 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -452,8 +452,6 @@ static void service_done(Unit *u) {
 
         service_close_socket_fd(s);
 
-        unit_ref_unset(&s->accept_socket);
-
         service_stop_watchdog(s);
 
         s->timer_event_source = sd_event_source_disable_unref(s->timer_event_source);
-- 
2.33.0

