[Tizen-submit] 25595: Changes to Tizen:IVI:Panda/libslp-utilx

noreply at tizen.org noreply at tizen.org
Wed Apr 9 00:52:13 GMT 2014


Hi,
Boram Park have made the following changes to libslp-utilx in project Tizen:IVI:Panda. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #25595

  submit:       Tizen:IVI:Panda:build/libslp-utilx(cleanup) -> Tizen:IVI:Panda


Message:
Submitter: Boram Park <boram1288.park at samsung.com>
Comments: fix memory leak
Git project: platform/core/uifw/libslp-utilx
Tag: submit/tizen/20140409.005204
Commit: a6c130f4acdcd8b0a833efd52feb279923828d0a fix memory leak

State:   new        2014-04-09T00:51:27 tizenrobot
Comment: <no comment>
changes files:
--------------

spec files:
-----------
--- libslp-utilx.spec
+++ libslp-utilx.spec
@@ -1,7 +1,7 @@
 %bcond_with x
 
 Name:       libslp-utilx
-VCS:        platform/core/uifw/libslp-utilx#8534277d5beb6b3903c0bb0bb3906a059fe1451b
+VCS:        platform/core/uifw/libslp-utilx#a6c130f4acdcd8b0a833efd52feb279923828d0a
 Summary:    utilX
 Version:    0.1.24
 Release:    1.1

other changes:
--------------

++++++ libslp-utilx-0.1.24.tar.gz
--- x11.c
+++ x11.c
@@ -1615,6 +1615,12 @@
         goto fail_init_dri2;
     }
 
+    if (!driverName || !deviceName)
+    {
+        fprintf (stderr, "[UTILX] fail : Get DRI info !!\n");
+        goto fail_init_dri2;
+    }
+
     /* drm_fd */
     info->drm_fd = open (deviceName, O_RDWR);
     if (info->drm_fd < 0)
@@ -1678,6 +1684,9 @@
 
     info->enable_xshm = False;
 
+    free (driverName);
+    free (deviceName);
+
     return True;
 
 fail_init_dri2:
@@ -1691,6 +1700,11 @@
     if (info->drm_fd >= 0)
         close (info->drm_fd);
 
+    if (driverName)
+        free (driverName);
+    if (deviceName)
+        free (deviceName);
+
     return False;
 }
 


More information about the Tizen-submit mailing list