* 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

@@ -865,6 +865,9 @@ add_packet_config_cmd (struct packet_config *config, const char *name,
set_remote_protocol_packet_cmd,
show_remote_protocol_packet_cmd,
&remote_set_cmdlist, &remote_show_cmdlist);
/* The command code copies the documentation strings. */
xfree (set_doc);
xfree (show_doc);
/* set/show remote NAME-packet {auto,on,off} -- legacy. */
if (legacy)
{