Change-Id: Ica22f3215932e7a837b79394d9624f900326d20b
Signed-off-by: Sangkyu Park <sk1122.park@samsung.com>
attrs->count = count;
attrs->items = (mmf_attribute_t *) malloc (sizeof(mmf_attribute_t) * count);
- return_val_if_fail(attrs->items, 0);
+ if(attrs->items == NULL) {
+ debug_error("Failed to malloc for attrs->items.");
+ free(attrs);
+ attrs=NULL;
+ return 0;
+ }
+
memset(attrs->items, 0, sizeof(mmf_attribute_t) * count);
if (pthread_mutex_init(&attrs->write_lock, NULL) != 0) {
Name: libmm-common
Summary: Multimedia Framework Common Lib
-Version: 0.2.86
+Version: 0.2.87
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0