Page MenuHomeFreeBSD

netmap tests: Reset ctx->nmctx to NULL in nmreq_parsing.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 24, 4:36 PM
Unknown Object (File)
Thu, Oct 23, 2:37 PM
Unknown Object (File)
Thu, Oct 23, 12:41 PM
Unknown Object (File)
Thu, Oct 23, 11:48 AM
Unknown Object (File)
Oct 12 2025, 3:37 PM
Unknown Object (File)
Oct 12 2025, 3:36 PM
Unknown Object (File)
Oct 12 2025, 3:36 PM
Unknown Object (File)
Oct 12 2025, 4:23 AM
Subscribers

Details

Summary

This avoids leaking a pointer to the on-stack test_nmctx which
triggers a -Wdangling-pointer warning from GCC.

Diff Detail

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