diff options
-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; } |