Re: [PATCH v2] contrib/plugins: Close file descriptor on error return

2023-10-23 Thread Alex Bennée
Cong Liu writes: > This patch closes the file descriptor fd on error return to avoid > resource leak. > > Fixes: ec7ee95db909 ("contrib/plugins: fix coverity warning in lockstep") > Signed-off-by: Cong Liu > --- > contrib/plugins/lockstep.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff -

[PATCH v2] contrib/plugins: Close file descriptor on error return

2023-10-17 Thread Cong Liu
This patch closes the file descriptor fd on error return to avoid resource leak. Fixes: ec7ee95db909 ("contrib/plugins: fix coverity warning in lockstep") Signed-off-by: Cong Liu --- contrib/plugins/lockstep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/plugins/lockstep.c b/con