From d200ab1e845272eb0530126c281918b2ae86706c Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 10 Dec 2011 22:51:47 +0000 Subject: [PATCH] * python/py-auto-load.c (source_section_scripts): Call xfree instead of free. --- gdb/ChangeLog | 5 +++++ gdb/python/py-auto-load.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 13998f5c594..d96e3ae35f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-10 Doug Evans + + * python/py-auto-load.c (source_section_scripts): Call xfree + instead of free. + 2011-12-10 Hui Zhu Yao Qi diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index 2a17ed00f32..62975ea10df 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -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); } } } -- 2.30.2