Re: flwrapper on Opteron
Michael Obster <[email protected]> Wed, 01 Mar 2006 00:30:10 +0100
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Stefan,
Michael Obster schrieb:
>>
>>/misc/tools-source/fl_wrapper.c{,.sh}:
>> char buf[512], *buf2, *logfile;
>> ...
>> buf2=get_current_dir_name();
>> ...
>> free(buf2);
>>
>>According to the man pages of "3 get_current_dir_name" and "3 free",
>>get_current_dir_name() should malloc() a buffer and store it in buf2, which
>>is later on (correctly) freed.
>>free() requires a void * as argument, while buf2 is a char *; you could try an
>>explicit type cast and replace
>> free(buf2);
>>with
>> free((void *)buf2);
>>
the error is still there. I've tried also to comment this out but it
doesn't help either.
The only conclusion I can do at the moment, it must be a function from
the glibc itself, what is causing this error. The next days I try to
find a solution in the Net. Hoping that anyone have done here some work,
because I don't want to read the ugly glibc.
Cheers,
Michael