Home
last modified time | relevance | path

Searched hist:"9 d946191" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/net/
H A Dnet.c9d946191 Mon Apr 30 02:26:45 CDT 2018 Thomas Huth <thuth@redhat.com> 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>