Skip to content

Commit 05682bd

Browse files
reshmapattantmonjalo
authored andcommitted
telemetry: fix memory leak
Free the `values` pointer before returning from rte_telemetry_command_ports_all_stat_values() to avoid memory leak. Fixes: c12cefa ("telemetry: fix mapping of statistics") Cc: [email protected] Signed-off-by: Reshma Pattan <[email protected]> Acked-by: Kevin Laatz <[email protected]>
1 parent 092a9de commit 05682bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/librte_telemetry/rte_telemetry_parser.c

+1
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ rte_telemetry_command_ports_all_stat_values(struct telemetry_impl *telemetry,
342342
goto fail;
343343
}
344344

345+
free(values);
345346
return 0;
346347

347348
fail:

0 commit comments

Comments
 (0)