[libvirt PATCH 1/2] nodedev: fix potential leak of command
Michal Privoznik
mprivozn at redhat.com
Wed Apr 21 07:44:16 UTC 2021
On 4/20/21 4:28 PM, Jonathon Jongsma wrote:
> When returning early due to errors, cmd will be leaked. Use an autoptr
> to handle these early returns without leaking memory.
>
> Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
> ---
> src/node_device/node_device_driver.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
Michal
More information about the libvir-list
mailing list