Subject: Re: 0xdeadbeef memory reference
To: Ljubisa Milenkovic <ljubisa.milenkovic@reddo.net>
From: Steve Woodford <scw@netbsd.org>
List: tech-kern
Date: 07/06/2001 08:51:36
On Fri, 6 Jul 2001, Ljubisa Milenkovic wrote:
> After I release memory I allocated, the pointer reference to following
> addresses: 0xdeadbeef and 0xdead(xxxx) where xxxx are numbers. Did I release
> that memory?
>
> To allocate memory I use following macros:
>
[snip]
>
> And to free:
> #define LFREE(t) free (&t, M_TEMP)
> /**< Frees the allocated memory */
>
> Is there something wrong with my macros?
Try "#define LFREE(t) free(t, M_TEMP)" instead.
Cheers, Steve