client: destroy builder on append failure

This commit is contained in:
Tim Kourt 2018-08-02 18:01:52 -07:00 committed by Denis Kenzior
parent a3bc408ae4
commit 8238ca7fce
1 changed files with 1 additions and 0 deletions

View File

@ -306,6 +306,7 @@ bool proxy_property_set(const struct proxy_interface *proxy, const char *name,
l_dbus_message_builder_enter_variant(builder, property->type);
if (!property->append(builder, value_str)) {
l_dbus_message_builder_destroy(builder);
l_dbus_message_unref(msg);
return false;
}