git: libc - nmalloc: Continue in a do/while(0) loop exits the loop, making the mtmagazine routines not use the previous magazine.

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Mon Sep 20 22:09:43 PDT 2010


commit 7b033ca7afcd5ded9c4102c353b86dfbe297a043
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date:   Mon Sep 20 21:59:48 2010 -0700

    libc - nmalloc: Continue in a do/while(0) loop exits the loop, making the mtmagazine routines not use the previous magazine.
    
    Also handle null return from _vmem_alloc in burst allocation path.
    
    Found-by: dillon

Summary of changes:
 lib/libc/stdlib/nmalloc.c |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b033ca7afcd5ded9c4102c353b86dfbe297a043


-- 
DragonFly BSD source repository





More information about the Commits mailing list