summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-10 22:58:07 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-11 12:47:38 +0100
commit8113eb74a0c290375734e83637dd38b3e3e36262 (patch)
tree85d64c93cbd3b6d5a433d548306dcd10bd4e6408 /src/lib/ecore_drm
parent4b8a422a6d5bf0fd113ec538a5e557d62d8e5f8e (diff)
eldbus - fix leak of message in error path case
fix CID 1402657
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_dbus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_dbus.c b/src/lib/ecore_drm/ecore_drm_dbus.c
index 686c93c..5834133 100644
--- a/src/lib/ecore_drm/ecore_drm_dbus.c
+++ b/src/lib/ecore_drm/ecore_drm_dbus.c
@@ -314,7 +314,10 @@ _ecore_drm_dbus_device_take_no_pending(uint32_t major, uint32_t minor, Eina_Bool
314 } 314 }
315 315
316 if (!eldbus_message_arguments_append(msg, "uu", major, minor)) 316 if (!eldbus_message_arguments_append(msg, "uu", major, minor))
317 return -1; 317 {
318 eldbus_message_unref(msg);
319 return -1;
320 }
318 321
319 reply = eldbus_proxy_send_and_block(proxy, msg, timeout); 322 reply = eldbus_proxy_send_and_block(proxy, msg, timeout);
320 if (eldbus_message_error_get(reply, &errname, &errmsg)) 323 if (eldbus_message_error_get(reply, &errname, &errmsg))