]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: Fix memory leak and error path
authorJohn Ferlan <jferlan@redhat.com>
Fri, 29 Sep 2017 13:21:47 +0000 (09:21 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 4 Oct 2017 10:22:02 +0000 (06:22 -0400)
commitf2fb783bb695153c9e8d22d52a461410c60ca428
tree5c9588c0a62742f0f62a545337c8743253967b86
parentca3bef4cec4143109f295ba8517d85be30ac7fe5
nwfilter: Fix memory leak and error path

Found by Coverity. If virNWFilterHashTablePut, then the 3rd arg @val
must be free'd since it would be leaked.

This also fixes potential problem on the error path where the caller
could assume the virNWFilterHashTablePut was successful when in fact
it failed leading to other issues.
src/nwfilter/nwfilter_gentech_driver.c