API/Client: Revise null-checks for output parameters
authorWook Song <wook16.song@samsung.com>
Mon, 22 May 2023 06:50:32 +0000 (15:50 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 31 May 2023 08:37:08 +0000 (17:37 +0900)
commitc63c2558cbd570de313965ddc497c625905219f8
tree59d6eced6b15d35945f0e53297d355c720b28858
parent5aae12a083a2bf04ae08b2e876133c4cdead4eaa
API/Client: Revise null-checks for output parameters

This patch revises null-checks for the output parameters, which
require memory allocation at the callee side, to return an error when
the argument is NULL and to warn the leak possibility when the
dereference is not NULL.

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