sal/osl/unx/pipe.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 2d42c4dfcabe55534a5b5a5f9379680f012ea7c9
Author: Julien Nabet <[email protected]>
AuthorDate: Mon Jul 28 22:08:06 2025 +0200
Commit: Caolán McNamara <[email protected]>
CommitDate: Tue Jul 29 10:06:07 2025 +0200
cid#1660511: Resource leak
Change-Id: I8cb8097f22a8d75190cad31a959a09fd4213ee8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188515
Tested-by: Caolán McNamara <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins
diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx
index 3e1df1e23a87..dd29aa6ca168 100644
--- a/sal/osl/unx/pipe.cxx
+++ b/sal/osl/unx/pipe.cxx
@@ -209,6 +209,7 @@ static oslPipe osl_psz_createPipe(const char *pszPipeName,
oslPipeOptions Option
if (isForbidden(name, osl_File_OpenFlag_Create))
{
+ close (pPipe->m_Socket);
destroyPipeImpl(pPipe);
return nullptr;
}