id = 2714 title = "Potential memory leak in virtio-crytpto" state = "opened" created_at = "2024-12-10T02:56:00.563Z" closed_at = "n/a" labels = ["Cryptography"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2714" host-os = "ubuntu 20.04" host-arch = "x86" qemu-version = "1cf9bc6eba7506ab6d9de635f224259225f63466" guest-os = "ubuntu 20.04" guest-arch = "x86" description = """There is a potential memory leak while using virtio-crypto with vhost-user backend. The problem is due to misuse of error_setg in [backends/cryptodev-vhost-user.c#L284](https://gitlab.com/qemu-project/qemu/-/blob/master/backends/cryptodev-vhost-user.c#L284). After invoking error_setg(&local_error, ...), current procedure should not return without freeing err object pointed by local_error. The same problem occured in cryptodev-builtin, which has been discussed in #2283 and fixed in f6abce29cc4afa0445cb3b29a265a114ac9fa744. The same fixes should be applied to cryptodev-vhost-user.""" reproduce = "n/a" additional = "n/a"