examples: add eal cleanup to examples
[dpdk.git] / examples / l2fwd-cat / l2fwd-cat.c
index 45a497c..02288a3 100644 (file)
@@ -198,8 +198,11 @@ main(int argc, char *argv[])
        if (rte_lcore_count() > 1)
                printf("\nWARNING: Too many lcores enabled. Only 1 used.\n");
 
-       /* Call lcore_main on the master core only. */
+       /* Call lcore_main on the main core only. */
        lcore_main();
 
+       /* clean up the EAL */
+       rte_eal_cleanup();
+
        return 0;
 }