* 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:
Tom Tromey 2009-08-18 16:17:16 +00:00
parent a8d1234eac
commit 1eefb8588a
4 changed files with 19 additions and 2 deletions

View file

@ -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