aboutsummaryrefslogtreecommitdiff
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorzhenwei pi <pizhenwei@bytedance.com>2023-05-03 19:54:37 +0800
committerMichael S. Tsirkin <mst@redhat.com>2023-06-23 03:09:45 -0400
commita1f85cff902f3260d85c74ec11d4c4b182cead80 (patch)
treee3f10f62f08d5e9c286925a0771a5b4cc75f19f5 /hw/net/virtio-net.c
parent152128d646973ed298d41dafd7a5bccff43336c8 (diff)
downloadqemu-a1f85cff902f3260d85c74ec11d4c4b182cead80.zip
qemu-a1f85cff902f3260d85c74ec11d4c4b182cead80.tar.gz
qemu-a1f85cff902f3260d85c74ec11d4c4b182cead80.tar.bz2
cryptodev: fix memory leak during stats query
object_get_canonical_path already returns newly allocated memory, this means no additional g_strdup required. Remove g_strdup to avoid memory leak. Fixes: Coverity CID 1508074 Fixes: f2b901098 ("cryptodev: Support query-stats QMP command") Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Message-Id: <20230503115437.262469-1-pizhenwei@bytedance.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions