syphilis has asked for the wisdom of the Perl Monks concerning the following question:
No problem with that but, on Win32 perl 5.10 and 5.8, in XS (Inline::C) code that's built against that libfoo library, the same code causes a "Free to wrong pool error..." when the free() call is made.char * string; string = my_foo(); // Do stuff free(string);
then, instead of calling free(string) in the XS code, I just call foo_free(string) and everything is fine.void foo_free(char * string) { free(string); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [Win32] "Free to wrong pool ..." error
by Anonymous Monk on Feb 08, 2009 at 03:55 UTC | |
by syphilis (Archbishop) on Feb 08, 2009 at 04:26 UTC | |
|
Re: [Win32] "Free to wrong pool ..." error
by ikegami (Patriarch) on Feb 09, 2009 at 10:01 UTC | |
by syphilis (Archbishop) on Feb 09, 2009 at 10:45 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2009 at 11:52 UTC | |
by syphilis (Archbishop) on Feb 10, 2009 at 05:45 UTC | |
by ikegami (Patriarch) on Feb 10, 2009 at 06:25 UTC | |
by BrowserUk (Patriarch) on Feb 10, 2009 at 14:39 UTC |