ovn-controller: Fix memory leak in create_br_int().
Found by Coverity.
Reported-at:
Acked-by: Miguel Angel Ajo
@@ -238,6 +238,7 @@ create_br_int(struct controller_ctx *ctx,
bridges[cfg->n_bridges] = bridge;
ovsrec_open_vswitch_verify_bridges(cfg);
ovsrec_open_vswitch_set_bridges(cfg, bridges, cfg->n_bridges + 1);
+ free(bridges);
return bridge;
}
