Add a comment describing a resource leak that occurs during a failure case

in obj_alloc.
This commit is contained in:
Jeff Roberson 2002-06-03 22:59:19 +00:00
parent 30c00e6c41
commit 494273bead
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97787

View File

@ -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)