mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97787
@ -821,6 +821,9 @@ page_alloc(uma_zone_t zone, int bytes, u_int8_t *pflag, int wait)
|
|||||||
* Returns:
|
* Returns:
|
||||||
* A pointer to the alloced memory or possibly
|
* A pointer to the alloced memory or possibly
|
||||||
* NULL if M_NOWAIT is set.
|
* 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 *
|
static void *
|
||||||
obj_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
|
obj_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
|
||||||
|
Loading…
Reference in New Issue
Block a user