Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
size_t nmap,
int nfds)
{
- virSystemdActivation *act;
+ g_autoptr(virSystemdActivation) act = g_new0(virSystemdActivation, 1);
const char *fdnames;
VIR_DEBUG("Activated with %d FDs", nfds);
- act = g_new0(virSystemdActivation, 1);
act->fds = virHashNew(virSystemdActivationEntryFree);
}
VIR_DEBUG("Created activation object for %d FDs", nfds);
- return act;
+ return g_steal_pointer(&act);
error:
- virSystemdActivationFree(act);
return NULL;
}