* python/py-auto-load.c (source_section_scripts): Call xfree
authorDoug Evans <dje@google.com>
Sat, 10 Dec 2011 22:51:47 +0000 (22:51 +0000)
committerDoug Evans <dje@google.com>
Sat, 10 Dec 2011 22:51:47 +0000 (22:51 +0000)
instead of free.

gdb/ChangeLog
gdb/python/py-auto-load.c

index 13998f5c594e90c5ad4b3f360385d90b929fe16d..d96e3ae35f7378e5b4ad0c02c2e0575c40e8d327 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-10  Doug Evans  <dje@google.com>
+
+       * python/py-auto-load.c (source_section_scripts): Call xfree
+       instead of free.
+
 2011-12-10  Hui Zhu  <teawater@gmail.com>
            Yao Qi  <yao@codesourcery.com>
 
index 2a17ed00f32838d19b2050930d7daa895d99d72c..62975ea10df820e803dca2e1fd4190f015e245f2 100644 (file)
@@ -314,7 +314,7 @@ Use `info auto-load-scripts [REGEXP]' to list them."),
          if (! in_hash_table)
            source_python_script_for_objfile (objfile, full_path);
          fclose (stream);
-         free (full_path);
+         xfree (full_path);
        }
     }
 }