URL: <http://gna.org/patch/?826>
Summary: Remaining group.c mem leak fixes & remaining leaks known shown. Project: Warzone Resurrection Project Submitted by: buginator Submitted on: Saturday 11/03/2007 at 06:48 Category: Fix Priority: 7 - High Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Basically, mallocs in grpCreate() were never all freed. It seems Per was the main person working on this file, please check the way I did the simple linked list to keep tabs on the malloc() calls. You may not like how this is done? After the patch, no more leaks in group.c ****** Ran a SP game, and leaks left are shown in SPleaks.txt lib\ivis_opengl\piedraw.c(541) : {271042} normal block at 0x0398CB08, 2048 bytes long. [This is from edgelist = (EDGE*)malloc(sizeof(EDGE)*edgelistsize);] The rest are UNKNOWN, and known lex leaks. (ie 16k+40bytes) ****** Ran a MP game, and leaks left are shown in MPleaks.txt lib\ivis_opengl\piedraw.c(541) : {375723} normal block at 0x0335EB68, 2048 bytes long. [edgelist = (EDGE*)malloc(sizeof(EDGE)*edgelistsize); ^^] lib\script\event.c(487) : {374424} normal block at 0x0335F748, 255 bytes long. lib\script\event.c(487) : {374638} normal block at 0x0335D200, 255 bytes long. lib\script\event.c(487) : {374852} normal block at 0x03300E28, 255 bytes long. lib\script\event.c(487) : {375066} normal block at 0x033B6C70, 255 bytes long. [psNewChunk->asVals[storeIndex].v.sval = (char*)malloc(MAXSTRLEN); ^^] The rest are UNKNOWN, and *unknown* lex leaks + known lex leaks. File is *169K*. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Saturday 11/03/2007 at 06:48 Name: groupleakfix.diff Size: 1kB By: buginator <http://gna.org/patch/download.php?file_id=3127> ------------------------------------------------------- Date: Saturday 11/03/2007 at 06:48 Name: SPleaks.txt Size: 2kB By: buginator <http://gna.org/patch/download.php?file_id=3128> ------------------------------------------------------- Date: Saturday 11/03/2007 at 06:48 Name: MPleaks.txt Size: 169kB By: buginator <http://gna.org/patch/download.php?file_id=3129> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?826> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev