[prevent][43479] Fix for missing va_end in _atspi_dbus_call_partial
[platform/upstream/at-spi2-core.git] / atspi / atspi-misc.c
index 5c0a40d..65003df 100644 (file)
@@ -1107,9 +1107,11 @@ _atspi_dbus_call_partial (gpointer obj,
                           const char *type, ...)
 {
   va_list args;
-
+  DBusMessage * result;
   va_start (args, type);
-  return _atspi_dbus_call_partial_va (obj, interface, method, error, type, args);
+  result =  _atspi_dbus_call_partial_va (obj, interface, method, error, type, args);
+  va_end (args);
+  return result;
 }