[ovs-dev] [PATCH v2 ovn] logical-fields: fix memory leak caused by initialize ovnfield_by_name twice

Ben Pfaff blp at ovn.org
Fri Mar 6 23:12:15 UTC 2020

On Thu, Mar 05, 2020 at 07:21:41AM +0100, Damijan Skvarc wrote:
> ovnfield_by_name is hash of strings which is used to quickly find
> field by name. This hash is initialized from ovn_init_symtab(). In case
> the latter function is called multiple times then also ovnfield_by_name is
> initialized multiple times but without freeing previously allocated
> memory resources what cause memory leaks.  This actually happens in
> ovn-controller which calls ovn_init_symtab() function twice, once from
> ofctrl.c and the other time from lflow.c files.

Applied to master, thanks!

More information about the dev mailing list