]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: Use goto finish instead of return in bus_add_match_full
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 11 Nov 2022 10:09:28 +0000 (11:09 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 11 Nov 2022 14:57:41 +0000 (15:57 +0100)
Fixes #25340

src/libsystemd/sd-bus/sd-bus.c

index 7e72245e8dca2c48d706b22440a44f5348321f2a..ba5ef7de006f61740a1c375e8cd4c7081095501a 100644 (file)
@@ -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