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
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.
__
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!
>>>
>>>
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
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 (