smatch: check libld_* allocation functions
*** 460,466 **** --- 460,469 ---- if (option_project == PROJ_KERNEL) { add_function_hook("kfree", &match_free_func, (void *)0); register_funcs_from_file(); } else { add_function_hook("free", &match_free_func, (void *)0); + if (option_project == PROJ_ILLUMOS_USER) + add_function_hook("libld_free", &match_free_func, + (void *)0); } }