Print this page
smatch: check libld_* allocation functions

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