]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/grammar_sandbox.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / grammar_sandbox.c
index 0d6200b00649d6541ec962d4ff067645501aa321..20d5879c67784278225635c000c540bc00ccf3d7 100644 (file)
@@ -140,7 +140,7 @@ DEFUN (grammar_test_complete,
                vty_out(vty, "%% No match\n");
 
        // free resources
-       list_delete_and_null(&completions);
+       list_delete(&completions);
        cmd_free_strvec(command);
        XFREE(MTYPE_TMP, cmdstr);
 
@@ -184,7 +184,7 @@ DEFUN (grammar_test_match,
 
                vty_out(vty, "func: %p\n", element->func);
 
-               list_delete_and_null(&argvv);
+               list_delete(&argvv);
        } else {
                assert(MATCHER_ERROR(result));
                switch (result) {
@@ -421,7 +421,7 @@ DEFUN (grammar_findambig,
                        }
                        prev = cur;
                }
-               list_delete_and_null(&commands);
+               list_delete(&commands);
 
                vty_out(vty, "\n");
        } while (scan && scannode < LINK_PARAMS_NODE);