[SVACE/414631] Check malloc return value
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 1 Apr 2019 07:55:04 +0000 (16:55 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 1 Apr 2019 10:46:38 +0000 (19:46 +0900)
commit1a493c320958542875823f79e892e48815f930f8
treec96244cc623e85a179aeb3fcfe3e344547f99a1a
parentb8a1d2544c97c777c749f9b33a66cec837df676e
[SVACE/414631] Check malloc return value

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

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