OSDN Git Service

linux-user/syscall.c: malloc to g_try_malloc
authorAhmed Abouzied <email@aabouzied.com>
Tue, 4 Jan 2022 14:38:41 +0000 (16:38 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 6 Jan 2022 10:40:52 +0000 (11:40 +0100)
commit7a5626a1d8a193106dc709608273ed48729967d5
treed73685726e18fafb3c93ce6a1ee21f9f021afd7f
parent155fff93f8e7720fa476f2f9a5c08bdad2076b8b
linux-user/syscall.c: malloc to g_try_malloc

Use g_try_malloc instead of malloc to alocate the target ifconfig.
Also replace the corresponding free with g_free.

Signed-off-by: Ahmed Abouzied <email@aabouzied.com>
Message-Id: <20220104143841.25116-1-email@aabouzied.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c