Add a comment describing a resource leak that occurs during a failure case
in obj_alloc.
This commit is contained in:
parent
30c00e6c41
commit
494273bead
@ -821,6 +821,9 @@ page_alloc(uma_zone_t zone, int bytes, u_int8_t *pflag, int wait)
|
||||
* Returns:
|
||||
* A pointer to the alloced memory or possibly
|
||||
* NULL if M_NOWAIT is set.
|
||||
*
|
||||
* TODO: If we fail during a multi-page allocation release the pages that have
|
||||
* already been allocated.
|
||||
*/
|
||||
static void *
|
||||
obj_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
|
||||
|
Loading…
x
Reference in New Issue
Block a user