Signed-off-by: Matt Coleman <matt@datto.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
{
virDrvOpenStatus result = VIR_DRV_OPEN_ERROR;
hypervPrivate *priv = NULL;
- char *username = NULL;
- char *password = NULL;
+ g_autofree char *username = NULL;
+ g_autofree char *password = NULL;
virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR);
cleanup:
hypervFreePrivate(&priv);
- VIR_FREE(username);
- VIR_FREE(password);
return result;
}