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>
size = get_tensor_data_size (&prop->output_meta.info[0]);
output[0].data = malloc (size);
+ assert (output[0].data);
/* This assumes the limit is 4 */
assert (NNS_TENSOR_RANK_LIMIT == 4);