Use g_auto for dnsmasq context and remove the cmd variable.
It was unused since its introduction in:
commit
8b32c80df089a3612a0448c1a92abc2071d6b6a9
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
int ret = -1;
virNetworkDef *def = NULL;
virNetworkObj *obj = NULL;
- virCommand *cmd = NULL;
g_autofree char *pidfile = NULL;
- dnsmasqContext *dctx = NULL;
+ g_autoptr(dnsmasqContext) dctx = NULL;
g_autoptr(virNetworkXMLOption) xmlopt = NULL;
if (!(xmlopt = networkDnsmasqCreateXMLConf()))
fail:
VIR_FREE(confactual);
- virCommandFree(cmd);
virNetworkObjEndAPI(&obj);
- dnsmasqContextFree(dctx);
return ret;
}