[PATCH 05/25] util: remove OOM error log from virGetHostnameImpl()

Ján Tomko jtomko at redhat.com
Thu Jun 25 22:58:29 UTC 2020


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 at redhat.com>
>---
> src/util/virutil.c | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200626/f4c09d0f/attachment-0001.sig>


More information about the libvir-list mailing list