svn commit: r203077 - head/lib/libc/stdlib

Ed Maste emaste at FreeBSD.org
Wed Jan 27 16:47:03 UTC 2010


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;
 			}


More information about the svn-src-head mailing list