From: Daan De Meyer Date: Fri, 11 Nov 2022 10:09:28 +0000 (+0100) Subject: sd-bus: Use goto finish instead of return in bus_add_match_full X-Git-Tag: v253-rc1~549 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f3c342903d1a09577378912717539b530af1fcf;p=thirdparty%2Fsystemd.git sd-bus: Use goto finish instead of return in bus_add_match_full Fixes #25340 --- diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 7e72245e8dc..ba5ef7de006 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -3529,7 +3529,7 @@ static int bus_add_match_full( s); if (r < 0) - return r; + goto finish; /* Make the slot of the match call floating now. We need the reference, but we don't * want that this match pins the bus object, hence we first create it non-floating, but