Re: [systemd-devel] sd_bus_process() + sd_bus_wait() is it not suitable for application?

2022-01-22 Thread Dan Nicholson
Aren't your leaking reply there? You don't seem to be unreffing it and it's not being returned to someone else to do it either. On Sat, Jan 22, 2022, 3:12 AM www wrote: > +Add the implementation code of the method. > > *static int method_load_info(sd_bus_message *message, void *userdata, >

Re: [systemd-devel] sd_bus_process() + sd_bus_wait() is it not suitable for application?

2022-01-22 Thread Cristian Rodríguez
What do you mean with memory increase ? sd_bus is unlikely to have any severe memory leak under normal conditions (if there is any, they are usually found in error paths) so you are either mis-using the api or misunderstanding memory management. if there is any memory leak either in your code or

Re: [systemd-devel] sd_bus_process() + sd_bus_wait() is it not suitable for application?

2022-01-22 Thread www
+Add the implementation code of the method. static int method_load_info(sd_bus_message *message, void *userdata, sd_bus_err *error) { sd_bus_message *reply = NULL; .. r = sd_bus_message_read(message. "r", ); .. r= sd_bus_message_new_return(message, ); //