diff options
Diffstat (limited to 'qom/object.c')
-rw-r--r-- | qom/object.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qom/object.c b/qom/object.c index 0311414c0a..9743ea4708 100644 --- a/qom/object.c +++ b/qom/object.c @@ -549,9 +549,7 @@ Object *object_new_with_propv(const char *typename, return obj; error: - if (local_err) { - error_propagate(errp, local_err); - } + error_propagate(errp, local_err); object_unref(obj); return NULL; } |