Humbly offered for your consideration...After the attached patch (plus the other attached "uncrustify" patch), plAlloc2dGrid will allocate one block of memory that is big enough for nx pointers plus nx*ny PLFLTs. This means only one call to malloc and only one call to free no matter how big nx is. It also avoids the "bug" in plAlloc2dGrid that neglects to free memory already allocated if fewer than nx of the ny-element arrays can be allocated.
I have tested this patch using x08c and x011c (both of which use these functions considerably). The examples work and no leaks were introduced (according to the "leaks" command).
Dave
0001-Streamlined-plAlloc2dGrid-and-plFree2dGrid.patch
Description: Binary data
0003-Uncrustified.patch
Description: Binary data
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel