in reply to Can't install Text::Metaphone with Strawberry Perl

I originally posted the bug on RT. It was on Strawberry Perl 5.8 not 5.10 and the author of the module fixed the problem recently. the original bug post was here Fails to install on strawberry perl 5.8
  • Comment on Re: Can't install Text::Metaphone with Strawberry Perl

Replies are listed 'Best First'.
Re^2: Can't install Text::Metaphone with Strawberry Perl
by Anonymous Monk on Oct 15, 2008 at 14:35 UTC
    That bug is still open, here's a "fix", in Metaphone.xs, replace
    free(phoned_word);
    with
    FreeMemory(phoned_word);
    and all is well
      This also seems to work. Would anyone care to explain this to me (just for my curiosity, i'm not that experienced with XS).

        The metaphone() function returns a C string allocated with the Perl API call NewMemory(), not the system's malloc(). You need to be consistent with the allocation/deallocation functions you use. That's all.