API/Client: Replace g_new0 with g_try_new0
authorWook Song <wook16.song@samsung.com>
Mon, 22 May 2023 07:32:52 +0000 (16:32 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 1 Jun 2023 02:10:51 +0000 (11:10 +0900)
commitb919d21429420193cd8663d0a03a537c585d9373
tree61a615b4fe95571810624bb7908ccf84f1e83024
parentc63c2558cbd570de313965ddc497c625905219f8
API/Client: Replace g_new0 with g_try_new0

g_new0 would not work as the author intended. This patch replaces g_new0
macros with g_try_new0 macros so that memory allocation failure is
checked at runtime.

Signed-off-by: Wook Song <wook16.song@samsung.com>
c/src/ml-api-service-agent-client.c