MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cmdline_free

Function cmdline_free

dpdk/lib/cmdline/cmdline.c:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void
105cmdline_free(struct cmdline *cl)
106{
107 dprintf("called\n");
108
109 if (!cl)
110 return;
111
112 if (cl->s_in > 2)
113 close(cl->s_in);
114 if (cl->s_out != cl->s_in && cl->s_out > 2)
115 close(cl->s_out);
116 free(cl);
117}
118
119void
120cmdline_printf(const struct cmdline *cl, const char *fmt, ...)

Callers 6

cmdline_stdin_exitFunction · 0.85
test_cmdline_parse_fnsFunction · 0.85
test_cmdline_socket_fnsFunction · 0.85
test_cmdline_fnsFunction · 0.85
mainFunction · 0.85
cmdline_read_from_fileFunction · 0.85

Calls 2

closeFunction · 0.50
freeFunction · 0.50

Tested by 4

test_cmdline_parse_fnsFunction · 0.68
test_cmdline_socket_fnsFunction · 0.68
test_cmdline_fnsFunction · 0.68
mainFunction · 0.68