Revision 69252c04
b/qmp.c | ||
---|---|---|
549 | 549 |
for (e = qdict_first(qdict); e; e = qdict_next(qdict, e)) { |
550 | 550 |
object_property_set(obj, v, e->key, &local_err); |
551 | 551 |
if (local_err) { |
552 |
error_propagate(errp, local_err); |
|
553 |
object_unref(obj); |
|
554 |
return; |
|
552 |
goto out; |
|
555 | 553 |
} |
556 | 554 |
} |
557 | 555 |
} |
558 | 556 |
|
559 | 557 |
object_property_add_child(container_get(object_get_root(), "/objects"), |
560 |
id, obj, errp); |
|
558 |
id, obj, &local_err); |
|
559 |
out: |
|
560 |
if (local_err) { |
|
561 |
error_propagate(errp, local_err); |
|
562 |
} |
|
561 | 563 |
object_unref(obj); |
562 | 564 |
} |
563 | 565 |
|
Also available in: Unified diff