aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-07-06 08:31:17 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-07-06 08:31:17 -0500
commit02d0ba1420803562109185f47be6f7430bfdefae (patch)
tree7d7185e9edd5bcf30ea38760d2a7f12fd21bb1c0 /net.c
parent9f5a1fae7ee1a7c66462e5b8e9d21552d4dc5027 (diff)
parenta6c4d36425871fafc55ce3937bebd05e86f5ea81 (diff)
downloadqemu-02d0ba1420803562109185f47be6f7430bfdefae.zip
qemu-02d0ba1420803562109185f47be6f7430bfdefae.tar.gz
qemu-02d0ba1420803562109185f47be6f7430bfdefae.tar.bz2
Merge remote branch 'qmp/for-anthony' into staging
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net.c b/net.c
index 90bd5a9..8ddf872 100644
--- a/net.c
+++ b/net.c
@@ -1208,6 +1208,10 @@ int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data)
}
res = net_client_init(mon, opts, 1);
+ if (res < 0) {
+ qemu_opts_del(opts);
+ }
+
return res;
}