vdpa/sfc: get max supported queue count
[dpdk.git] / app / test / test_cmdline_lib.c
index 054ebf5..f50ccdb 100644 (file)
@@ -176,11 +176,12 @@ test_cmdline_socket_fns(void)
                printf("Error: failed to open /dev/null for reading!");
                return -1;
        }
+       cmdline_free(cl);
+       cl = NULL;
 
        /* void functions */
        cmdline_stdin_exit(NULL);
 
-       cmdline_free(cl);
        return 0;
 error:
        printf("Error: function accepted null parameter!\n");