diff options
author | Thomas Huth | 2018-04-30 09:26:45 +0200 |
---|---|---|
committer | Jason Wang | 2018-05-14 09:47:12 +0200 |
commit | 9d94619189d899b2b40e9dfaa0ede64c8b81e5ab (patch) | |
tree | 2d0a9cf7764ad89fb07c3fa4ed49fc409654d6a0 /qapi | |
parent | Merge remote-tracking branch 'remotes/rth/tags/cota-target-pull-request' into... (diff) | |
download | qemu-9d94619189d899b2b40e9dfaa0ede64c8b81e5ab.tar.gz qemu-9d94619189d899b2b40e9dfaa0ede64c8b81e5ab.tar.xz qemu-9d94619189d899b2b40e9dfaa0ede64c8b81e5ab.zip |
net: Fix memory leak in net_param_nic()
The early exits in case of errors leak the memory allocated for nd_id.
Fix it by using a "goto out" to the cleanup at the end of the function
instead.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions