[SVACE/414630] Check malloc return value
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 1 Apr 2019 07:53:17 +0000 (16:53 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 1 Apr 2019 10:46:24 +0000 (19:46 +0900)
commitb8a1d2544c97c777c749f9b33a66cec837df676e
tree484d0bd802251377b4a6a475bc28428246546197
parentfcb1c5e387ccb89204a43ad9c5ddc985c02ab95e
[SVACE/414630] Check malloc return value

Do not proceed if malloc returns null:
Warning Message
Pointer 'data' returned from function 'malloc' at nnstreamer_customfilter_example_scaler.c:45 may be null, and it is dereferenced at nnstreamer_customfilter_example_scaler.c:48.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
nnstreamer_example/custom_example_scaler/nnstreamer_customfilter_example_scaler.c