Free the undefined symbol
authorSoren Sandman <sandmann@daimi.au.dk>
Fri, 2 Mar 2007 06:27:05 +0000 (06:27 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Fri, 2 Mar 2007 06:27:05 +0000 (06:27 +0000)
2007-03-02  Soren Sandman <sandmann@daimi.au.dk>

* process.c (free_process): Free the undefined symbol

svn path=/trunk/; revision=358

ChangeLog
process.c

index e014545..f85b23a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-03-02  Soren Sandman <sandmann@daimi.au.dk>
+
+       * process.c (free_process): Free the undefined symbol
+
 2007-03-02  Soren Sandmann <sandmann@daimi.au.dk>
 
        * process.c (process_get_vdso_bytes): Make a copy of the vdso
index 8ff8b7e..2baab9c 100644 (file)
--- a/process.c
+++ b/process.c
@@ -55,7 +55,7 @@ struct Process
     
     int                pid;
     
-    const char *undefined;
+    char *     undefined;
 };
 
 static void
@@ -251,7 +251,8 @@ free_process (gpointer key, gpointer value, gpointer data)
     Process *process = value;
     
     free_maps (&(process->n_maps), process->maps);
-    
+
+    g_free (process->undefined);
     g_free (process->cmdline);
     g_list_free (process->bad_pages);