Re: Re: [PATCH] cryptodev: fix memory leak during stats query

2023-05-28 Thread Michael S. Tsirkin
On Fri, May 26, 2023 at 04:34:21PM +0800, zhenwei pi wrote: > > > On 5/3/23 20:59, Peter Maydell wrote: > > On Wed, 3 May 2023 at 12:54, zhenwei pi wrote: > > > > > > object_get_canonical_path already returns newly allocated memory, this > > > means no additional g_strdup required. Remove g_str

Re: Re: [PATCH] cryptodev: fix memory leak during stats query

2023-05-26 Thread zhenwei pi
On 5/3/23 20:59, Peter Maydell wrote: On Wed, 3 May 2023 at 12:54, zhenwei pi wrote: 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:

Re: [PATCH] cryptodev: fix memory leak during stats query

2023-05-03 Thread Peter Maydell
On Wed, 3 May 2023 at 12:54, zhenwei pi wrote: > > 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