diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 08:31:17 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 08:31:17 -0500 |
commit | 02d0ba1420803562109185f47be6f7430bfdefae (patch) | |
tree | 7d7185e9edd5bcf30ea38760d2a7f12fd21bb1c0 /net.c | |
parent | 9f5a1fae7ee1a7c66462e5b8e9d21552d4dc5027 (diff) | |
parent | a6c4d36425871fafc55ce3937bebd05e86f5ea81 (diff) | |
download | qemu-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |