forked from Imagelibrary/binutils-gdb
* utils.c (add_internal_problem_command): Free set_doc and
show_doc. * remote.c (add_packet_config_cmd): Free set_doc and show_doc. * language.c (add_language): Free language_set_doc.
This commit is contained in:
@@ -1098,6 +1098,9 @@ Show whether GDB will quit when an %s is detected"),
|
||||
set_cmd_list,
|
||||
show_cmd_list);
|
||||
|
||||
xfree (set_doc);
|
||||
xfree (show_doc);
|
||||
|
||||
set_doc = xstrprintf (_("\
|
||||
Set whether GDB should create a core file of GDB when %s is detected"),
|
||||
problem->name);
|
||||
@@ -1114,6 +1117,9 @@ Show whether GDB will create a core file of GDB when %s is detected"),
|
||||
NULL, /* showfunc */
|
||||
set_cmd_list,
|
||||
show_cmd_list);
|
||||
|
||||
xfree (set_doc);
|
||||
xfree (show_doc);
|
||||
}
|
||||
|
||||
/* Print the system error message for errno, and also mention STRING
|
||||
|
||||
Reference in New Issue
Block a user