git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ip_frag: free mbufs on reassembly table destroy
[dpdk.git]
/
app
/
proc_info
/
main.c
diff --git
a/app/proc_info/main.c
b/app/proc_info/main.c
index
17a1c87
..
d4f6a82
100644
(file)
--- a/
app/proc_info/main.c
+++ b/
app/proc_info/main.c
@@
-434,7
+434,7
@@
nic_xstats_by_ids_display(uint8_t port_id, uint64_t *ids, int len)
int ret, i;
static const char *nic_stats_border = "########################";
int ret, i;
static const char *nic_stats_border = "########################";
- values = malloc(sizeof(values) * len);
+ values = malloc(sizeof(
*
values) * len);
if (values == NULL) {
printf("Cannot allocate memory for xstats\n");
return;
if (values == NULL) {
printf("Cannot allocate memory for xstats\n");
return;
@@
-486,7
+486,7
@@
nic_xstats_display(uint8_t port_id)
printf("Cannot get xstats count\n");
return;
}
printf("Cannot get xstats count\n");
return;
}
- values = malloc(sizeof(values) * len);
+ values = malloc(sizeof(
*
values) * len);
if (values == NULL) {
printf("Cannot allocate memory for xstats\n");
return;
if (values == NULL) {
printf("Cannot allocate memory for xstats\n");
return;