Commit 4157b6a1 authored by Simon McVittie's avatar Simon McVittie

dbus_message_append_args_valist: Don't leak memory on inappropriate type

Found by source code inspection while trying to debug an unrelated
Signed-off-by: Simon McVittie's avatarSimon McVittie <>
Reviewed-by: Philip Withnall's avatarPhilip Withnall <>
(cherry picked from commit 6b7bdb10)
parent b1abd7ad
......@@ -1935,6 +1935,7 @@ dbus_message_append_args_valist (DBusMessage *message,
_dbus_warn ("arrays of %s can't be appended with %s for now\n",
_dbus_type_to_string (element_type),
dbus_message_iter_abandon_container (&iter, &array);
goto failed;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment