[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] ff692a: virtio: qmp: fix memory leak

From: Paolo Bonzini
Subject: [Qemu-commits] [qemu/qemu] ff692a: virtio: qmp: fix memory leak
Date: Sun, 28 May 2023 01:02:02 -0700

  Branch: refs/heads/staging-8.0
  Home:   https://github.com/qemu/qemu
  Commit: ff692a15bbc13b6a12ce9d5e6802bdfc209c1ea3
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2023-05-27 (Sat, 27 May 2023)

  Changed paths:
    M hw/virtio/virtio-qmp.c

  Log Message:
  virtio: qmp: fix memory leak

The VirtioInfoList is already allocated by QAPI_LIST_PREPEND and
need not be allocated by the caller.

Fixes Coverity CID 1508724.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0bfd14149b248e8097ea4da1f9d53beb5c5b0cca)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]