Re: [systemd-devel] sd-bus memory check

2020-04-12 Thread David J
Sun, Apr 12, 2020 at 11:00 AM David J wrote: Hello! This is in regards to sd-bus function "sd_bus_open_system", where Valgrind reports possible memory leak. See the following code: mem_test.c: #include #include #include int main(int argc, char *argv[]) {   sd_bus *bus = NULL

[systemd-devel] sd-bus memory check

2020-04-12 Thread David J
n 0 blocks The question is am I doing anything wrong here? Why Valgrind thinks there "might" be memory leak? The interesting part is if I use "sd_bus_open_system", Valgrind is all happy and no warnings at all! Thank you, David J. __

Re: [systemd-devel] sd_bus_add_match callback

2020-04-10 Thread David J
AM, Giacinto Cifelli wrote: > > hi Lennart, > >> On Fri, Apr 10, 2020 at 2:14 PM Lennart Poettering >> wrote: >> >>> On Do, 09.04.20 14:12, David J (ema...@icloud.com) wrote: >>> >>> Hello Systemd developers! >>> >>>

Re: [systemd-devel] sd_bus_add_match callback

2020-04-09 Thread David J
x27;", callback, userdata2); > > r = sd_event_loop(event); > assert(r >= 0); > > bus = sd_bus_flush_close_unref(bus); > slot = sd_bus_slot_unref(slot); > event = sd_event_unref(event); > } > > /*End =*/ > > I appreciate your help and your time. > > Thank you, > David J (ema...@icloud.com) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] sd_bus_add_match callback

2020-04-07 Thread David J
userdata2);   r = sd_event_loop(event);   assert(r >= 0);     bus = sd_bus_flush_close_unref(bus);   slot = sd_bus_slot_unref(slot);   event = sd_event_unref(event); } /*End =*/ I appreciate your help and your time. Thank you, David J (