Replace remaining uses of VIR_FREE with g_clear_pointer.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
g_strerror(errno));
}
- if (ctl->logfile) {
- VIR_FREE(ctl->logfile);
- ctl->logfile = NULL;
- }
+ g_clear_pointer(&ctl->logfile, g_free);
}
#ifndef WIN32
}
}
- VIR_FREE(ctl->historydir);
- VIR_FREE(ctl->historyfile);
+ g_clear_pointer(&ctl->historydir, g_free);
+ g_clear_pointer(&ctl->historyfile, g_free);
}
char *