]> git.proxmox.com Git - mirror_frr.git/blobdiff - tools/permutations.c
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
[mirror_frr.git] / tools / permutations.c
index c5109dc3e8823b626d82f3d676bfc38d3a0ae14d..f51d4a4ec9a845a84e9d9117bcbc41ef2b5ae4d0 100644 (file)
@@ -39,7 +39,8 @@ int main(int argc, char *argv[])
                fprintf(stdout, USAGE "\n");
                exit(EXIT_SUCCESS);
        }
-       struct cmd_element *cmd = calloc(1, sizeof(struct cmd_element));
+       struct cmd_element *cmd = XCALLOC(MTYPE_TMP,
+                                         sizeof(struct cmd_element));
        cmd->string = strdup(argv[1]);
 
        struct graph *graph = graph_new();