From 494273bead0b4f3413ccdd998213d648a533a640 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Mon, 3 Jun 2002 22:59:19 +0000 Subject: [PATCH] Add a comment describing a resource leak that occurs during a failure case in obj_alloc. --- sys/vm/uma_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index c6924b0b7080..9afe453233d7 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -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)