Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2010 16:47:02 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203077 - head/lib/libc/stdlib
Message-ID:  <201001271647.o0RGl29q070590@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Jan 27 16:47:02 2010
New Revision: 203077
URL: http://svn.freebsd.org/changeset/base/203077

Log:
  Add missing return, in a rare case where we can't allocate memory in
  deallocate.
  
  Submitted by:	Ryan Stone (rysto32 at gmail dot com)
  Approved by:	jasone

Modified:
  head/lib/libc/stdlib/malloc.c

Modified: head/lib/libc/stdlib/malloc.c
==============================================================================
--- head/lib/libc/stdlib/malloc.c	Wed Jan 27 16:21:32 2010	(r203076)
+++ head/lib/libc/stdlib/malloc.c	Wed Jan 27 16:47:02 2010	(r203077)
@@ -3800,6 +3800,7 @@ arena_dalloc(arena_t *arena, arena_chunk
 					arena_dalloc_small(arena, chunk, ptr,
 					    mapelm);
 					malloc_spin_unlock(&arena->lock);
+					return;
 				}
 				mag_rack = rack;
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001271647.o0RGl29q070590>