examples: add eal cleanup to examples
[dpdk.git] / examples / l2fwd / main.c
index be5bf7b..32d405e 100644 (file)
@@ -902,6 +902,9 @@ main(int argc, char **argv)
                rte_eth_dev_close(portid);
                printf(" Done\n");
        }
+
+       /* clean up the EAL */
+       rte_eal_cleanup();
        printf("Bye...\n");
 
        return ret;