Page MenuHomeFreeBSD

tests/tcp_hpts_test: Fix resource leaks
ClosedPublic

Authored by markj on Sun, Apr 26, 3:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 4:09 AM
Unknown Object (File)
Wed, May 13, 9:30 PM
Unknown Object (File)
Wed, May 13, 5:42 PM
Unknown Object (File)
Wed, May 13, 5:42 PM
Unknown Object (File)
Wed, May 13, 5:32 PM
Unknown Object (File)
Mon, May 11, 5:30 AM
Unknown Object (File)
Sun, May 10, 1:46 PM
Unknown Object (File)
Fri, May 8, 10:15 AM

Details

Summary

When a KTEST_EQUAL assertion fails, the test function returns, but this
can cause it to leak locks. Add a variant which causes control flow to
jump to a label in case of failure, and use that to prevent this
problem.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable