X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-pmd%2Fcmdline.c;h=f71d963019d13c008947461120820ceb7ba71a4b;hb=6b663dae3f7d0bc0e1f3f35f1ae561ab72f276cb;hp=e5c42b88e3d0df8345fc464f633bc9fc5b590c7a;hpb=b2c3f15f84262c537197a86409335a8751fb3f6b;p=dpdk.git diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index e5c42b88e3..f71d963019 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -14362,7 +14362,7 @@ cmd_ddp_info_parsed( uint32_t dev_num = 0; struct rte_pmd_i40e_ddp_device_id *devs; uint32_t proto_num = 0; - struct rte_pmd_i40e_proto_info *proto; + struct rte_pmd_i40e_proto_info *proto = NULL; uint32_t pctype_num = 0; struct rte_pmd_i40e_ptype_info *pctype; uint32_t ptype_num = 0; @@ -14541,9 +14541,10 @@ no_print_pctypes: free(ptype); printf("\n"); - free(proto); ret = 0; no_print_return: + if (proto) + free(proto); #endif if (ret == -ENOTSUP) printf("Function not supported in PMD driver\n");