HomeFreeBSD

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

Description

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

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

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D37536

Details

Provenance
jhbAuthored on Dec 5 2022, 12:29 AM
Reviewer
imp
Differential Revision
D37536: netmap tests: Reset ctx->nmctx to NULL in nmreq_parsing.
Parents
rGf4432625edd6: acpica: Quiet a -Wdangling-pointer warning in AcpiUtInitStackPtrTrace.
Branches
Unknown
Tags
Unknown