test/telemetry: fix typo at beginning of line
[dpdk.git] / lib / librte_pipeline / rte_swx_ctl.c
index 576fb2b..ee6df45 100644 (file)
@@ -371,7 +371,7 @@ table_entry_duplicate(struct rte_swx_ctl_pipeline *ctl,
                }
        }
 
-       return entry;
+       return new_entry;
 
 error:
        table_entry_free(new_entry);
@@ -1463,6 +1463,7 @@ rte_swx_ctl_pipeline_table_entry_read(struct rte_swx_ctl_pipeline *ctl,
                arg_offset += arg->n_bits / 8;
        }
 
+       free(s0);
        return entry;
 
 error: