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

Function freeenv

freebsd/kern/kern_environment.c:402–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400SYSINIT(kenv, SI_SUB_KMEM + 1, SI_ORDER_FIRST, init_dynamic_kenv, NULL);
401
402void
403freeenv(char *env)
404{
405
406 if (dynamic_kenv && env != NULL) {
407 explicit_bzero(env, strlen(env));
408 uma_zfree(kenv_zone, env);
409 }
410}
411
412/*
413 * Internal functions for string lookup.

Callers 15

sys_kenvFunction · 0.70
getenv_boolFunction · 0.70
parse_dir_ask_printenvFunction · 0.70
vfs_mountroot_conf0Function · 0.70
start_initFunction · 0.70
parse_manifest_eventFunction · 0.50
netdump_modeventFunction · 0.50
cpu_startupFunction · 0.50
bios32_initFunction · 0.50
arge_attachFunction · 0.50

Calls 2

explicit_bzeroFunction · 0.85
uma_zfreeFunction · 0.50

Tested by

no test coverage detected