libk  Diff

Differences From Artifact [cc32756862]:

To Artifact [bac849b7ff]:


     8      8    * kmfree() frees memory allocated in any manner.
     9      9    * it ignores non-dynamically allocated memory,
    10     10    * returning kmcond_unnecessary. to check for
    11     11    * success, compare result < kmcond_fail.
    12     12    */
    13     13   
    14     14   kmcond kmfree(kmptr ptr) {
    15         -	if (ptr.kind <= kmkind_fail) return kmcond_unnecessary;
           15  +	if (ptr.kind <= kmkind_broken) return kmcond_unnecessary;
    16     16   	switch (ptr.kind) {
    17     17   		case kmkind_heap: return kmheapf(ptr.ref);
    18     18   	}
    19     19   
    20     20   	return kmcond_unhandled;
    21     21   }
    22     22