K 10 svn:author V 2 kp K 8 svn:date V 27 2021-05-27T10:22:19.198023Z K 7 svn:log V 584 pf: fix ioctl() memory leak When we create an nvlist and insert it into another nvlist we must remember to destroy it. The nvlist_add_nvlist() function makes a copy, just like nvlist_add_string() makes a copy of the string. If we don't we're leaking memory on every (nvlist-based) ioctl() call. While here remove two redundant 'break' statements. PR: 255971 MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 4483fb47735c29408c72045469c9c4b3e549668b) Git Hash: c3e4b38f4932d0ce457508b3893324a520e0dc30 Git Author: kp@FreeBSD.org END