]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_cmdline_lib.c
vdpa/sfc: get max supported queue count
[dpdk.git] / app / test / test_cmdline_lib.c
index 054ebf5e9dc1f70f4b57ae636e0b79c42152ab1c..f50ccdb599fdbef4e2168096e74d064a93bd5cd7 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");