[Cbe-oss-dev] Memalign and free doesn't work
Jonathan Adamczewski
jadamcze at utas.edu.au
Wed Oct 14 08:57:49 EST 2009
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().
j.
More information about the cbe-oss-dev
mailing list