memory handling patch
Bernhard Reiter
bernhard at intevation.de
Sat May 19 23:03:04 CEST 2001
Hi friends of statist,
There is a new patch for statist which you should try.
For easy of downloading I have put it in the contrib directory,
though I did it myself. :)
http://www.usf.uos.de/~breiter/tools/statist/v1.0.0/contrib/
Thanks to the efforts of Masao KAWAMURA <kawamura at mlb.co.jp>
and his patch I found a couple of memory handling problems probably
still originating from Dirk. :)
Tried to make memory handling more consistant,
this should fix some problems.
Everybody should test this patch and the other ones if you get a
chance because I plan to release it as the next stable version of statist.
It needs some testing because memory handling is always critical.
Here is the changelog to the patch:
* cleanup: removed alread inactived myfopen() from the code completly
* cleanup: grouped memory functions in statist.c and added short describtions
* cleanup: simplified free_ptr() to use the global int n_ptr
* fix: reworked memory handling, only the functions mycalloc, myalloc
and myfree() are used now. A couple of free()s where too much.
Thanks to KAWAMURA Masao <kawamura at mlb.co.jp> and his patch
for pointing me to the problem.
* note: in funcs.c, mycalloc() and myfree() are used to get a
huge bunch of memory in get_cross_validate() and
get_multiple_reg(), usually m_calloc() would be used
and limiting the number of temp variables allocated...
Bernhard
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20010519/9b17cd3a/attachment.bin
More information about the Statist-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)