[Haiku-commits] r26200 - haiku/trunk/src/system/kernel
mmlr at mail.berlios.de
mmlr at mail.berlios.de
Tue Jul 1 22:18:04 CEST 2008
Author: mmlr
Date: 2008-07-01 22:18:02 +0200 (Tue, 01 Jul 2008)
New Revision: 26200
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=26200&view=rev
Modified:
haiku/trunk/src/system/kernel/heap.cpp
Log:
Take a shortcut when freeing in heap_realloc(), we already know the address belongs to our heap.
Modified: haiku/trunk/src/system/kernel/heap.cpp
===================================================================
--- haiku/trunk/src/system/kernel/heap.cpp 2008-07-01 19:43:37 UTC (rev 26199)
+++ haiku/trunk/src/system/kernel/heap.cpp 2008-07-01 20:18:02 UTC (rev 26200)
@@ -1158,7 +1158,7 @@
// copy the old data and free the old allocation
memcpy(*newAddress, address, min_c(maxSize, newSize));
- free(address);
+ heap_free(heap, address);
return B_OK;
}
More information about the Haiku-commits
mailing list