[SVACE/414633] Check malloc return value
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 1 Apr 2019 07:59:59 +0000 (16:59 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 1 Apr 2019 10:47:07 +0000 (19:47 +0900)
commit3fba844fa1ac87cc36f90998cb0a7aca26767cef
tree412089c81b1c9a0f42f1bb8bff4d8169095b01a0
parenta2529f930a1bf47118f1f27e2029dc8835d62636
[SVACE/414633] Check malloc return value

Do not proceed if malloc returns null:
Warning Message
Pointer 'output[0].data' returned from function 'malloc' at nnstreamer_customfilter_example_scaler_allocator.c:159 may be null, and it is dereferenced at nnstreamer_customfilter_example_scaler_allocator.c:202.

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