HomeFreeBSD

libpfctl: Don't pass stack garbage to free.

Description

libpfctl: Don't pass stack garbage to free.

GCC 9 on stable/12 reports a -Wmaybe-uninitialized error for the call
to free in _pfctl_clear_states.

Reviewed by: mjg
Differential Revision: https://reviews.freebsd.org/D39198

Details

Provenance
jhbAuthored on Mar 22 2023, 7:33 PM
Reviewer
mjg
Differential Revision
D39198: libpfctl: Don't pass stack garbage to free.
Parents
rGf9c7fb7caed0: arpa: garbage collect ns_newmsg/ns_rdata decls
Branches
Unknown
Tags
Unknown