[Cbe-oss-dev] Memalign and free doesn't work
Michael Ellerman
michael at ellerman.id.au
Wed Oct 14 09:34:17 EST 2009
On Wed, 2009-10-14 at 08:57 +1100, Jonathan Adamczewski wrote:
> Michael Ellerman wrote:
> > On Tue, 2009-10-13 at 09:45 -0700, Geoff Levand wrote:
> >> On 10/10/2009 06:13 AM, Philip Pratt-Szeliga wrote:
> >>> Hello,
> >>>
> >>> I am noticing that memalign and free doesn't work on the ps3.
> >> The POSIX standard says that free() doesn't need to free the
> >> resources from a memalign(). I guess that is what is happening
> >> here.
> >>
> >> If possible, I recommend you convert your program to use
> >> statically allocated variables.
> >
> > My man page says:
> >
> > POSIX requires that memory obtained from posix_memalign() can be freed
> > using free(3).
>
> But posix_memalign() is not memalign().
Um yeah I know :) I meant Phil should try using posix_memalign()
instead.
cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20091014/524d378a/attachment.pgp>
More information about the cbe-oss-dev
mailing list