Re: [PATCH] remote/stream-event: Fix a memory leak in?? remoteStreamCallbackFree()

2025-06-30 Thread Bjorn Helgaas via Devel
[+to libvirt development list, since this looks like a libvirt patch, not a Linux kernel patch] On Thu, Jun 26, 2025 at 02:10:38PM +0800, liu.xuem...@zte.com.cn wrote: > From: Liu Song > > The ff callback is never called in remoteStreamCallbackFree() because > cbdata->cb can not be NULL. This ca

[PATCH] remote/stream-event: Fix a memory leak in remoteStreamCallbackFree()

2025-06-24 Thread liu.xuemei1
From: Liu Song The ff callback is never called in remoteStreamCallbackFree() because cbdata->cb can not be NULL. This causes a leak of 'cbdata->opaque'. The leak can be reproduced by attaching and detaching to the console of an VM using `virsh console`. ASAN reports the leak stack as: Direct le