gdb/ChangeLog:
* completer.c (completion_list_add_name): Fix memory leak.
+2015-02-12 Doug Evans <dje@google.com>
+
+ * completer.c (completion_list_add_name): Fix memory leak.
+
2015-02-12 Doug Evans <dje@google.com>
* completer.c (complete_line): Remove incorrect comment.
VEC_safe_push (char_ptr, return_val, new);
throw_max_completions_reached_error ();
case MAYBE_ADD_COMPLETION_MAX_REACHED:
+ xfree (new);
throw_max_completions_reached_error ();
case MAYBE_ADD_COMPLETION_DUPLICATE:
xfree (new);