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>
pt_init (const GstTensorFilterProperties * prop)
{
pt_data *data = (pt_data *) malloc (sizeof (pt_data));
+ assert (data);
if (prop->custom_properties && strlen (prop->custom_properties) > 0)
data->property = g_strdup (prop->custom_properties);