]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r331225:
authorkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Apr 2018 15:29:14 +0000 (15:29 +0000)
committerkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Apr 2018 15:29:14 +0000 (15:29 +0000)
commit74941d6079cb497ba4c14cb63ab69df076981a3c
tree19fcad29c5662ef06879145e7b0097f8dce4b81e
parentde99812c0fb2423a3706bda45986be06191a2087
MFC r331225:

pf: Fix memory leak in DIOCRADDTABLES

If a user attempts to add two tables with the same name the duplicate table
will not be added, but we forgot to free the duplicate table, leaking memory.
Ensure we free the duplicate table in the error path.

Reported by: Coverity
CID: 1382111

git-svn-id: svn://svn.freebsd.org/base/stable/10@332330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netpfil/pf/pf_table.c