Re: [Arsperl-users] ars_CreateEntry crashing on Windows
Brought to you by:
jeffmurphy
|
From: John U. <joh...@cr...> - 2007-07-17 21:44:58
|
Hello,
Can someone explain what happens now? Do we get notified of an official =
fix?
Regards,
John.
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of John Unsworth
Sent: 24 June 2007 21:27
To: 'ARSperl User Discussion'
Subject: Re: [Arsperl-users] ars_CreateEntry crashing on Windows
We have fixed this by the following change to mallocnn in support.c.
/* malloc that will never return null */
void *
mallocnn(int s)
{
#ifdef malloc
#undef malloc
#endif
void *m =3D malloc(s ? s : 1);
if (!m)
croak("can't malloc");
memset(m, 0, s ? s : 1);
return m;
}
The Perl malloc macro is undefined and so the platform malloc() is used
instead. All memory allocation for the structures then uses the platform
memory manager and the call to FreeARFieldValueList() works correctly.
|