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

Function exec_free_args

freebsd/kern/kern_exec.c:1407–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407void
1408exec_free_args(struct image_args *args)
1409{
1410
1411 if (args->buf != NULL) {
1412 exec_free_args_kva(args->bufkva);
1413 args->buf = NULL;
1414 }
1415 if (args->fname_buf != NULL) {
1416 free(args->fname_buf, M_TEMP);
1417 args->fname_buf = NULL;
1418 }
1419 if (args->fdp != NULL)
1420 fdescfree_remapped(args->fdp);
1421}
1422
1423/*
1424 * A set to functions to fill struct image args.

Callers 3

do_execveFunction · 0.85
exec_copyin_argsFunction · 0.85
exec_copyin_data_fdsFunction · 0.85

Calls 3

exec_free_args_kvaFunction · 0.85
fdescfree_remappedFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected