Print this page
smatch: check libld_* allocation functions

*** 38,47 **** void check_freeing_null(int id) { my_id = id; if (!option_spammy) return; ! if (option_project == PROJ_KERNEL) add_function_hook("kfree", &match_free, NULL); ! else add_function_hook("free", &match_free, NULL); } --- 38,51 ---- void check_freeing_null(int id) { my_id = id; if (!option_spammy) return; ! if (option_project == PROJ_KERNEL) { add_function_hook("kfree", &match_free, NULL); ! } else { add_function_hook("free", &match_free, NULL); + } + + if (option_project == PROJ_ILLUMOS_USER) + add_function_hook("libld_free", &match_free, NULL); }