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)
Sun, Oct 4, 12:58 AM
Unknown Object (File)
Sun, Oct 4, 12:30 AM
Unknown Object (File)
Sat, Oct 3, 11:25 PM
Unknown Object (File)
Thu, Sep 10, 4:02 AM
Unknown Object (File)
Mon, Sep 7, 11:27 AM
Unknown Object (File)
Sep 6 2026, 9:26 AM
Unknown Object (File)
Sep 5 2026, 2:07 PM
Unknown Object (File)
Sep 5 2026, 1:51 PM
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