]> xenbits.xensource.com Git - libvirt.git/commit
util: remove OOM error log from virGetHostnameImpl()
authorLaine Stump <laine@redhat.com>
Fri, 19 Jun 2020 02:33:28 +0000 (22:33 -0400)
committerLaine Stump <laine@redhat.com>
Sun, 5 Jul 2020 04:01:07 +0000 (00:01 -0400)
commit852ee1950aee5f31c9656b30c5fe9124f734c38c
tree2757b146083a436878d7ae3b3153d846edfffb8d
parent59afd0b0bcbbefd65fd8c171d73db207828c8b18
util: remove OOM error log from virGetHostnameImpl()

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>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virutil.c