MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / lwp_free_command_line_args

Function lwp_free_command_line_args

components/lwp/lwp_args.c:971–983  ·  view source on GitHub ↗

* @brief Free memory allocated for command line arguments * * @param argv Array of command line arguments to free * * @return void */

Source from the content-addressed store, hash-verified

969 * @return void
970 */
971void lwp_free_command_line_args(char** argv)
972{
973 size_t i;
974
975 if (argv)
976 {
977 for (i = 0; argv[i]; i++)
978 {
979 rt_free(argv[i]);
980 }
981 rt_free(argv);
982 }
983}

Callers 6

lwp_print_envpFunction · 0.85
lwp_get_envpFunction · 0.85
lwp_backtrace_frameFunction · 0.85
stat_single_showFunction · 0.85
cmdline_single_showFunction · 0.85

Calls 1

rt_freeFunction · 0.85

Tested by

no test coverage detected