]> git.proxmox.com Git - mirror_ovs.git/commit - lib/dpif-netdev.c
dpif-netdev: Fix memory leak in dpif_netdev_flow_put()
authorRyan Wilson <wryan@nicira.com>
Wed, 25 Jun 2014 20:05:17 +0000 (13:05 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 25 Jun 2014 20:26:05 +0000 (13:26 -0700)
commit5715de1400dd1fafe7d3d08a02c6ca0a0cd998e9
tree49903130a1fd117549f3e7207fbcc44efb5bd41c
parent8bb113da32dd2aabcb958bb16941ba73ae4610b3
dpif-netdev: Fix memory leak in dpif_netdev_flow_put()

miniflow_destroy() needs to be called after using miniflow_init().
Otherwise, if the miniflow mallocs data, then a memory leak may
occur.

Found by inspection.

Signed-off-by: Ryan Wilson <wryan@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-netdev.c