cbhm_helper: fixed the memory leak for coverity 99/181199/2
authorTaehyub Kim <taehyub.kim@samsung.com>
Fri, 4 May 2018 02:08:03 +0000 (11:08 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 11 Jun 2018 07:46:53 +0000 (07:46 +0000)
Change-Id: I1de8488d19bf9de1ce3bac7dad147ff5e7da1445

src/modules/elementary/copypasteUI_ctxpopup/cbhm_helper.c

index 3c02570..f88ccb6 100644 (file)
@@ -236,6 +236,7 @@ _cbhm_item_count_get(Evas_Object *obj EINA_UNUSED, int atom_index)
         EINA_LOG_ERR("Unable to call method org.freedesktop.DBus.Properties.Get: %s %s",
               errname, errmsg);
         eldbus_message_unref(req);
+        eldbus_message_unref(reply);
         return -1;
      }
 
@@ -428,6 +429,7 @@ _cbhm_item_type_get(Evas_Object *obj, int item_index)
         EINA_LOG_ERR("Unable to call method org.freedesktop.DBus.Properties.Get: %s %s",
               errname, errmsg);
         eldbus_message_unref(req);
+        eldbus_message_unref(reply);
         return -1;
      }