free memory allocated by mpf_get_str
Sisyphus
sisyphus1 at optusnet.com.au
Tue May 5 05:00:53 CEST 2009
----- Original Message -----
From: "LiuEmma" <yanjiyun2002 at hotmail.com>
To: <sisyphus1 at optusnet.com.au>
Sent: Tuesday, May 05, 2009 11:00 AM
Subject: RE: free memory allocated by mpf_get_str
Best to keep the list informed - so I've added the list to the recipients.
>
> I am using Vsiual Sttudio 2005 Team Edition.
I use only the MinGW port of gcc on Windows. Sorry, I don't know how Visual
Studio goes about building gmp.
>
> It is really strange.
>
> I use __gmp_free_func(ch,strlen(ch)+1) and it works.
>
Perhaps Visual Studio builds use a custom allocation instead of the default
malloc, realloc and free. (I really don't know.)
Cheers,
Rob
More information about the gmp-discuss
mailing list