mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
8dac833ab2
PR: 12624 Submitted by: Jason Brazile <jason.brazile@netcetera.ch>
17 lines
314 B
Plaintext
17 lines
314 B
Plaintext
*** old/smartmem.C Thu May 25 00:39:35 1995
|
|
--- smartmem.C Mon Jul 12 15:28:20 1999
|
|
***************
|
|
*** 64,70 ****
|
|
--- 64,74 ----
|
|
void
|
|
SmartMemory::free(void* ptr, unsigned size) {
|
|
if(ptr) {
|
|
+ #ifdef __FreeBSD__
|
|
+ ::free(ptr);
|
|
+ #else
|
|
::cfree(ptr);
|
|
+ #endif
|
|
totalBytes_Allocated -= size;
|
|
}
|
|
}
|