On Tue, 2013-11-26 at 00:15 +0100, Lennart Poettering wrote:
> On Mon, 25.11.13 09:13, Patrik Flykt ([email protected]) wrote:
>
> > -DHCPClient *sd_dhcp_client_new(void)
> > +DHCPClient *sd_dhcp_client_new(sd_event *event)
> > {
> > DHCPClient *client;
> >
> > + assert_return(event, NULL);
> > +
> > client = new0(DHCPClient, 1);
> > if (!client)
> > return NULL;
> >
> > + client->event = event;
>
> You should probably take a reference here with sd_event_ref(), and then
> unref it again in your destructor.
Ok.
Patrik
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel