2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Erase contents of memory before freeing it.
9 #include <proto/exec.h>
10 #include <aros/system.h>
11 #include <aros/debug.h>
12 #include <exec/execbase.h>
14 #undef FreeMem /* Don't use any kind of macro here :) We want the real thing */
15 void FreeMem(void *, ULONG
);
18 extern struct ExecBase
* SysBase
;
20 /*****************************************************************************
23 #include <proto/arossupport.h>
32 Overwrites the memory with 0xDEADBEEF before actually freeing it.
35 mem - Pointer which was returned by AllocMem()
36 size - Size which was given to AllocMem()
39 The function may print some infos using kprintf().
42 This function depends on SysBase.
49 exec.library/FreeMem()
54 24-12-95 digulla created
56 ******************************************************************************/
58 MUNGE_BLOCK (mem
, size
, MEMFILL_FREE
);