
26 Jun
2020
26 Jun
'20
12:58 a.m.
On a Wednesday in 2020, Laine Stump wrote:
The strings allocated in virGetHostnameImpl() are all allocated via g_strdup(), which will exit on OOM anyway, so the call to virReportOOMError() is redundant, and removing it allows slight modification to the code, in particular the cleanup label can be eliminated.
Signed-off-by: Laine Stump <laine@redhat.com> --- src/util/virutil.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
Reviewed-by: Ján Tomko <jtomko@redhat.com> Jano