[prevent][74927] Fix for resource leak 12/176112/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.023728 accepted/tizen/unified/20180425.062246 submit/tizen/20180419.063831 submit/tizen/20180423.061623 submit/tizen_5.0/20181101.000005
authorPaweł Stawicki <p.stawicki@samsung.com>
Mon, 16 Apr 2018 16:00:26 +0000 (18:00 +0200)
committerPaweł Stawicki <p.stawicki@samsung.com>
Mon, 16 Apr 2018 16:00:26 +0000 (18:00 +0200)
Change-Id: I875c4718aa8461ea99ada0660a07e489bd9a2aca

atk-adaptor/adaptors/accessible-adaptor.c

index 4ea50a2..c7e4aaf 100644 (file)
@@ -1130,8 +1130,10 @@ impl_GetChildAtIndex (DBusConnection * bus,
           DBusMessageIter iter, iter_socket;
           *(child_path++) = '\0';
           reply = dbus_message_new_method_return (message);
-          if (!reply)
+          if (!reply) {
+            g_free (child_name);
             return NULL;
+          }
           dbus_message_iter_init_append (reply, &iter);
           dbus_message_iter_open_container (&iter, DBUS_TYPE_STRUCT, NULL,
                                             &iter_socket);