Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9672) memory leak in tilespec.c
Home

[Freeciv-Dev] (PR#9672) memory leak in tilespec.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9672) memory leak in tilespec.c
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Aug 2004 09:27:22 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9672 >

Tilespec.c leaks a small amount of memory.

jason

Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.194
diff -u -r1.194 tilespec.c
--- client/tilespec.c   3 Aug 2004 00:09:44 -0000       1.194
+++ client/tilespec.c   11 Aug 2004 16:26:52 -0000
@@ -699,6 +699,7 @@
        (void) hash_replace(sprite_hash, mystrdup(tags[k]), ss);
       }
     }
+    free(tags);
   }
 
   section_file_check_unused(file, sf->file_name);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9672) memory leak in tilespec.c, Jason Short <=