diff options
author | jeff <jeff@FreeBSD.org> | 2002-06-03 22:59:19 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-06-03 22:59:19 +0000 |
commit | d9ab0c8dbcc15d1f11216307b235370b43767371 (patch) | |
tree | 4c956bb0068b9f1851fe4d9b8ab976a005e54425 /sys/vm/uma_core.c | |
parent | 44fd6d90917f2b1e84ab106f71036d5a36025275 (diff) | |
download | FreeBSD-src-d9ab0c8dbcc15d1f11216307b235370b43767371.zip FreeBSD-src-d9ab0c8dbcc15d1f11216307b235370b43767371.tar.gz |
Add a comment describing a resource leak that occurs during a failure case
in obj_alloc.
Diffstat (limited to 'sys/vm/uma_core.c')
-rw-r--r-- | sys/vm/uma_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index c6924b0..9afe453 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) |