Home
last modified time | relevance | path

Searched hist:c3157b74 (Results 1 – 1 of 1) sorted by relevance

/qemu/hw/i386/
H A Dmicrovm.cc3157b74 Tue Nov 12 16:34:23 GMT 2019 Sergio Lopez <slp@redhat.com> microvm: fix memory leak in microvm_fix_kernel_cmdline

In microvm_fix_kernel_cmdline(), fw_cfg_modify_string() is duplicating
cmdline instead of taking ownership of it. Free it afterwards to avoid
leaking it.

Reported-by: Coverity (CID 1407218)
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20191112163423.91884-1-slp@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>