Thomas Huth 9d94619189 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>
2018-05-14 15:47:12 +08:00
..
2017-01-20 10:36:38 +08:00
2016-07-19 20:18:02 +02:00
2018-05-14 15:47:12 +08:00
2016-07-19 20:18:02 +02:00
2016-02-04 17:41:30 +00:00
2017-11-13 18:05:12 +08:00
2016-10-26 09:57:59 +08:00
2016-02-04 17:41:30 +00:00
2016-02-23 12:43:05 +00:00