bugWarzone 2100 Project - Bugs: bug #11851, memory leaks when starting and...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #11851: memory leaks when starting and immediately exiting

Submitted by:  Paul Wise <pabs>
Submitted on:  Sat 21 Jun 2008 02:22:18 AM UTC  
 
Category: NoneSeverity: Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: svn/trunkOperating System: GNU/Linux
Planned Release: None

Sat 21 Jun 2008 11:52:57 PM UTC, comment #1:

The levParse() one is known. I had a fix for it, but that caused a whole load of build problems on Mac OSX & Windows.

The levParse() code is only run very few times for Warzone's entire runtime, thus isn't such a significant problem.

The last block is more an issue.

Giel van Schijndel <muggenhor>
Project Member
Sat 21 Jun 2008 02:22:18 AM UTC, original submission:

valgrind says there are a couple of memory leaks when showing the menu and then immediately quitting:

==31422== 877 bytes in 53 blocks are definitely lost in loss record 45 of 82
==31422== at 0x4023D6E: malloc (vg_replace_malloc.c:207)
==31422== by 0x43573CF: strdup (strdup.c:43)
==31422== by 0x80C6B25: levParse (levels.c:407)
==31422== by 0x80B162B: loadLevFile (init.c:151)
==31422== by 0x80B229E: buildMapList (init.c:370)
==31422== by 0x80B236D: systemInitialise (init.c:398)
==31422== by 0x80CD19D: main (main.c:926)
==31422==
==31422== 1,868 (192 direct, 1,676 indirect) bytes in 31 blocks are definitely lost in loss record 46 of 82
==31422== at 0x4023D6E: malloc (vg_replace_malloc.c:207)
==31422== by 0x5D692EC: ???
==31422== by 0x5D90C90: ???
==31422== by 0x5D92866: ???
==31422== by 0x426E79B: (within /usr/lib/libGLU.so.1.3.070004)
==31422== by 0x427659A: gluBuild2DMipmaps (in /usr/lib/libGLU.so.1.3.070004)
==31422== by 0x82028BA: pie_AddTexPage (tex.c:98)
==31422== by 0x8204337: LoadTextureFile (bitimage.c:51)
==31422== by 0x82045AD: iV_LoadImageFile (bitimage.c:109)
==31422== by 0x806EE93: dataIMGLoad (data.c:722)
==31422== by 0x820E709: resLoadFile (frameresource.c:509)
==31422== by 0x82121FA: res_parse (resource_parser.y:123)

Paul Wise <pabs>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by muggenhor (Posted a comment)
  • -unavailable- added by pabs (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 06 Jul 2008 06:29:18 PM UTCdevurandomDependenciesRemoved dependancy from bugs #11861=>-
    Sun 06 Jul 2008 06:29:07 PM UTCdevurandomDependencies-=>bugs #11615 is dependent
    Sun 22 Jun 2008 05:03:53 PM UTCdevurandomDependencies-=>bugs #11861 is dependent
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup