<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/net/utest/tc_sal_socket_failure.c, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/net/utest/tc_sal_socket_failure.c?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/net/utest/tc_sal_socket_failure.c?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-09-01T01:05:36Z</updated>
<entry>
<title>[net][sal] Free DFS v2 vnode when socket creation fails</title>
<updated>2026-09-01T01:05:36Z</updated>
<author>
<name>wyf-777</name>
<email>wyf-777@users.noreply.github.com</email>
</author>
<published>2026-08-27T08:45:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cfba23f4d1580e301954f9f723e7f94364d3db2c'/>
<id>urn:sha1:cfba23f4d1580e301954f9f723e7f94364d3db2c</id>
<content type='text'>
When sal_socket() rejects a request, DFS v2 descriptor cleanup destroys the dfs_file but leaves its separately allocated vnode behind.

Destroy the vnode before releasing the failed descriptor and add a regression test that verifies repeated failures do not consume heap.

Fixes #11710

Assisted-by: OpenAI Codex:GPT-5
</content>
</entry>
</feed>
