Author: emaste
Date: Tue Feb  9 13:07:32 2010
New Revision: 203701
URL: http://svn.freebsd.org/changeset/base/203701

Log:
  MFC r203077:
  
    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:
  stable/8/lib/libc/stdlib/malloc.c
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/stdlib/malloc.c
==============================================================================
--- stable/8/lib/libc/stdlib/malloc.c   Tue Feb  9 12:20:48 2010        
(r203700)
+++ stable/8/lib/libc/stdlib/malloc.c   Tue Feb  9 13:07:32 2010        
(r203701)
@@ -3861,6 +3861,7 @@ arena_dalloc(arena_t *arena, arena_chunk
                                        arena_dalloc_small(arena, chunk, ptr,
                                            mapelm);
                                        malloc_spin_unlock(&arena->lock);
+                                       return;
                                }
                                mag_rack = rack;
                        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to