libpfctl: fix double free

Reviewed by:	donner
MFC after:	1 week
Sponsored by:	Modirum MDPay
Differential Revision:	https://reviews.freebsd.org/D31695
This commit is contained in:
Kristof Provost 2021-08-22 16:20:15 +02:00
parent 2b10cf85f8
commit b0ccc2e277

View File

@ -860,7 +860,6 @@ pfctl_get_syncookies(int dev, struct pfctl_syncookies *s)
nvl = nvlist_unpack(nv.data, nv.len, 0);
free(nv.data);
if (nvl == NULL) {
free(nv.data);
return (EIO);
}