X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fflow_classify%2Frte_flow_classify.c;h=d3ba2ed22752c0bf8115889de99d9c93113bdef8;hb=016441e3c770b65774d658c94a82c5bf5ed826fe;hp=f125267e8f0f56d93b2b76982576ffc09946b32a;hpb=9b83a7ed2ac160aca64eed4d45102aadf26bc053;p=dpdk.git diff --git a/lib/flow_classify/rte_flow_classify.c b/lib/flow_classify/rte_flow_classify.c index f125267e8f..d3ba2ed227 100644 --- a/lib/flow_classify/rte_flow_classify.c +++ b/lib/flow_classify/rte_flow_classify.c @@ -579,12 +579,12 @@ rte_flow_classify_table_entry_delete(struct rte_flow_classifier *cls, &rule->u.key.key_del, &rule->key_found, &rule->entry); - + if (ret == 0) + free(rule); return ret; } } } - free(rule); return ret; }