Modify memory allocation 65/96765/1 accepted/tizen/common/20161115.200549 accepted/tizen/ivi/20161115.234259 accepted/tizen/mobile/20161115.233954 accepted/tizen/tv/20161115.234152 accepted/tizen/wearable/20161115.234223 submit/tizen/20161115.062308
authorJiyong Min <jiyong.min@samsung.com>
Thu, 10 Nov 2016 06:06:47 +0000 (15:06 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 10 Nov 2016 06:13:51 +0000 (22:13 -0800)
 [Problem] Kona RQ161102-00322

Change-Id: Iea9f5534a2c671837b549e37b567dea6b6999c49
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
packaging/capi-media-controller.spec
svc/media_controller_svc.c

index f24276a..ce92e55 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-controller
 Summary:    A media controller library in Tizen Native API
-Version:    0.1.26
+Version:    0.1.27
 Release:    1
 Group:      Multimedia/API
 License:    Apache-2.0
index 3847b92..863e0bd 100644 (file)
@@ -254,12 +254,11 @@ gboolean mc_svc_thread(void *data)
        mc_svc_data_t *mc_svc_data = NULL;
        uid_t uid = DEFAULT_USER_UID;
 
-       mc_svc_data = (mc_svc_data_t *)g_malloc(sizeof(mc_svc_data_t));
+       mc_svc_data = (mc_svc_data_t *)calloc(1, sizeof(mc_svc_data_t));
        if (mc_svc_data == NULL) {
                mc_error("Failed to allocate svc data");
                return FALSE;
        }
-       memset(mc_svc_data, 0, sizeof(mc_svc_data_t));
 
        ret = __mc_sys_get_uid(&uid);
        if (ret < 0) {