ecore_drm: free the new-allocated memory when failed 93/127893/2
authorBoram Park <boram1288.park@samsung.com>
Tue, 2 May 2017 07:39:21 +0000 (16:39 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 8 May 2017 05:45:01 +0000 (05:45 +0000)
Change-Id: I0c446cf19291a23dc272498a4111b4f65a29da11

src/lib/ecore_drm/ecore_drm_display.c

index 009c9b8..b28f473 100644 (file)
@@ -1249,6 +1249,7 @@ _ecore_drm_display_output_wait_vblank(Ecore_Drm_Output *output, int interval, Ec
    if (ret != TDM_ERROR_NONE)
      {
         ERR("Error Wait VBlank: %m");
+        free(cb);
         return EINA_FALSE;
      }