mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
f9c7fb7cae
commit
48c519be0e
1 changed files with 0 additions and 2 deletions
|
|
@ -1188,7 +1188,6 @@ static int
|
|||
_pfctl_clear_states(int dev, const struct pfctl_kill *kill,
|
||||
unsigned int *killed, uint64_t ioctlval)
|
||||
{
|
||||
struct pfioc_nv nv;
|
||||
nvlist_t *nvl;
|
||||
int ret;
|
||||
|
||||
|
|
@ -1211,7 +1210,6 @@ _pfctl_clear_states(int dev, const struct pfctl_kill *kill,
|
|||
*killed = nvlist_get_number(nvl, "killed");
|
||||
|
||||
nvlist_destroy(nvl);
|
||||
free(nv.data);
|
||||
|
||||
return (ret);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue