]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Give virNWFilterVarCombIterNext saner semantics
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Mar 2014 11:38:20 +0000 (11:38 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Mar 2014 17:08:54 +0000 (17:08 +0000)
commitef2c4c965b3bc2f5ba8173744c80f73165c3eda8
tree748da95ceb44ccdde3b400da123e776c7a092e91
parent9f7da130f421632c1e94e4e89ae87beb1b1c0d02
Give virNWFilterVarCombIterNext saner semantics

The virNWFilterVarCombIterNext method will free its
parameter when it gets to the end of the iterator.
This is somewhat misleading design, making it appear
as if the caller has a memory leak. Remove the free'ing
of the parameter and ensure that the calling method
ebiptablesCreateRuleInstanceIterate free's it instead.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/conf/nwfilter_params.c
src/nwfilter/nwfilter_ebiptables_driver.c