mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
17 lines
315 B
Plaintext
17 lines
315 B
Plaintext
*** smartmem.C.orig Thu Apr 17 15:32:03 1997
|
|
--- smartmem.C Thu Apr 17 15:33:41 1997
|
|
***************
|
|
*** 64,70 ****
|
|
--- 64,74 ----
|
|
void
|
|
SmartMemory::free(void* ptr, unsigned size) {
|
|
if(ptr) {
|
|
+ #ifdef __FreeBSD__
|
|
+ ::free(ptr);
|
|
+ #else
|
|
::cfree(ptr);
|
|
+ #endif
|
|
totalBytes_Allocated -= size;
|
|
}
|
|
}
|