diff options
author | Tom Tromey <tromey@redhat.com> | 2009-08-18 16:17:16 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-08-18 16:17:16 +0000 |
commit | 1eefb8588aa1c49d7d5a5c96c16c3b790ab2e802 (patch) | |
tree | f0f61b0c2b5247cbb09db68860035744d82253d1 /gdb/language.c | |
parent | a8d1234eac953c71e48f3c09d9254976381c27cf (diff) | |
download | gdb-1eefb8588aa1c49d7d5a5c96c16c3b790ab2e802.zip gdb-1eefb8588aa1c49d7d5a5c96c16c3b790ab2e802.tar.gz gdb-1eefb8588aa1c49d7d5a5c96c16c3b790ab2e802.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/language.c b/gdb/language.c index d975f23..51a49f8 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -884,7 +884,7 @@ add_language (const struct language_defn *lang) /* For the "set language" command. */ static char **language_names = NULL; /* For the "help set language" command. */ - static char *language_set_doc = NULL; + char *language_set_doc = NULL; int i; struct ui_file *tmp_stream; @@ -943,7 +943,6 @@ local or auto Automatic setting based on source file\n")); languages[i]->la_name + 1); } - xfree (language_set_doc); language_set_doc = ui_file_xstrdup (tmp_stream, NULL); ui_file_delete (tmp_stream); @@ -955,6 +954,8 @@ Show the current source language."), NULL, set_language_command, show_language_command, &setlist, &showlist); + + xfree (language_set_doc); } /* Iterate through all registered languages looking for and calling |