ovs-brcompatd: Fix memory leak in handle_fdb_query_cmd().
authorJustin Pettit <jpettit@nicira.com>
Mon, 21 Feb 2011 23:58:19 +0000 (15:58 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 17:36:57 +0000 (09:36 -0800)
Coverity #10731

vswitchd/ovs-brcompatd.c

index a89ea2afc11d020043b786139303106e0414f763..fe953f436a29ab31354e7f42c601836abc43f692 100644 (file)
@@ -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;
 }