[ovs-dev] [coverity 03/14] ovs-brcompatd: Fix memory leak in handle_fdb_query_cmd().

Justin Pettit jpettit at nicira.com
Tue Feb 22 01:44:46 UTC 2011


Coverity #10731
---
 vswitchd/ovs-brcompatd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c
index a89ea2a..fe953f4 100644
--- a/vswitchd/ovs-brcompatd.c
+++ b/vswitchd/ovs-brcompatd.c
@@ -965,6 +965,7 @@ handle_fdb_query_cmd(const struct ovsrec_open_vswitch *ovs,
 
     /* Free memory. */
     ofpbuf_uninit(&query_data);
+    free(local_macs);
 
     return 0;
 }
-- 
1.7.1





More information about the dev mailing list