Re: [PATCH 3/7] vhost-user-gpu: fix memory leak in vg_resource_attach_backing

2021-05-05 Thread Li Qiang
P J P 于2021年5月5日周三 下午3:39写道: > > +-- On Tue, 4 May 2021, Li Qiang wrote --+ > | Check whether the 'res' has already been attach_backing to avoid > | memory leak. > | > | Signed-off-by: Li Qiang > | --- > | contrib/vhost-user-gpu/vhost-user-gpu.c | 5 + > | 1 file changed, 5 insertions(+) > |

Re: [PATCH 3/7] vhost-user-gpu: fix memory leak in vg_resource_attach_backing

2021-05-05 Thread P J P
+-- On Tue, 4 May 2021, Li Qiang wrote --+ | Check whether the 'res' has already been attach_backing to avoid | memory leak. | | Signed-off-by: Li Qiang | --- | contrib/vhost-user-gpu/vhost-user-gpu.c | 5 + | 1 file changed, 5 insertions(+) | | diff --git a/contrib/vhost-user-gpu/vhost-use

[PATCH 3/7] vhost-user-gpu: fix memory leak in vg_resource_attach_backing

2021-05-04 Thread Li Qiang
Check whether the 'res' has already been attach_backing to avoid memory leak. Signed-off-by: Li Qiang --- contrib/vhost-user-gpu/vhost-user-gpu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/contrib/vhost-user-gpu/vhost-user-gpu.c b/contrib/vhost-user-gpu/vhost-user-gpu.c index b5e1