]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fuzz-bus-match: drop unnecessary wrapper function
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 5 Oct 2023 16:38:31 +0000 (18:38 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Oct 2023 14:48:16 +0000 (16:48 +0200)
Same confusion as in previous commit.

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

index b79494d88890f78dac299d3c31f2e0981664f309..f7f12746e5c75a8d734b78bb46ccbfc5934a1f3d 100644 (file)
@@ -9,8 +9,6 @@
 #include "fuzz.h"
 #include "memstream-util.h"
 
-DEFINE_TRIVIAL_DESTRUCTOR(bus_match_donep, struct bus_match_node, bus_match_free);
-
 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         _cleanup_(memstream_done) MemStream m = {};
         _cleanup_(sd_bus_unrefp) sd_bus *bus = NULL;
@@ -28,7 +26,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         r = sd_bus_new(&bus);
         assert_se(r >= 0);
 
-        _cleanup_(bus_match_donep) struct bus_match_node root = {
+        _cleanup_(bus_match_free) struct bus_match_node root = {
                 .type = BUS_MATCH_ROOT,
         };