Files
tqma6-yocto-mirror/sources/meta-openembedded/meta-networking/recipes-daemons/openhpi/files/0001-session-close-socket.patch
Siggi (OpenClaw Agent) 16accb6b24 Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved)
- Complete sources/ directory with all BitBake recipes
- Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl)
- Full traceability for Softwarefreigabeantrag
- GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4
- License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
2026-03-01 21:14:11 +00:00

38 lines
975 B
Diff

From b8bc6bfdb5e7fb5b46d3a830e04632939bee6b98 Mon Sep 17 00:00:00 2001
From: Catalin Enache <catalin.enache@windriver.com>
Date: Fri, 9 Feb 2018 16:35:11 +0200
Subject: [PATCH] saHpiSessionClose: close socket
saHpiSessionClose leaks file descriptors
Upstream issue: https://github.com/open-hpi/openhpi/issues/1918
Upstream-Status: Pending
Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
baselib/session.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/baselib/session.cpp b/baselib/session.cpp
index c5edfc8..4ece1b7 100644
--- a/baselib/session.cpp
+++ b/baselib/session.cpp
@@ -126,6 +126,12 @@ cSession::cSession()
cSession::~cSession()
{
+ cClientStreamSock * sock;
+ gpointer ptr = wrap_g_static_private_get( &m_sockets );
+ if ( ptr ) {
+ sock = reinterpret_cast<cClientStreamSock *>(ptr);
+ sock->Close();
+ }
wrap_g_static_private_free( &m_sockets );
}
--
2.10.2