dpctl: Fix memory leak in dpctl_dump_flows()
Goto label accurately to avoid memleak.
Fixes: ("dpctl: Expand the flow dump type filter")
Cc: Gavi Teitz
@@ -1031,7 +1031,7 @@ dpctl_dump_flows(int argc, const char *argv[], struct dpctl_params *dpctl_p)
memset(&dump_types, 0, sizeof dump_types);
error = populate_dump_types(types_list, &dump_types, dpctl_p);
if (error) {
- goto out_free;
+ goto out_dpifclose;
}
determine_dpif_flow_dump_types(&dump_types, &dpif_dump_types);
