mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-26 11:34:43 +00:00
2007-08-17 Michael Snyder <msnyder@access-company.com>
* completer.c (location_completer): Must free 'fn_list', except in the one case where it is returned (as 'list').
This commit is contained in:
parent
74dddad306
commit
1f20ed9160
@ -1,5 +1,8 @@
|
||||
2007-08-17 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* completer.c (location_completer): Must free 'fn_list', except
|
||||
in the one case where it is returned (as 'list').
|
||||
|
||||
* varobj.c (value_of_root): Memory leak.
|
||||
|
||||
* gdbtypes.h (virtual_base_list): Remove export decl.
|
||||
|
@ -281,7 +281,8 @@ location_completer (char *text, char *word)
|
||||
list = make_symbol_completion_list (symbol_start, word);
|
||||
/* If text includes characters which cannot appear in a file
|
||||
name, they cannot be asking for completion on files. */
|
||||
if (strcspn (text, gdb_completer_file_name_break_characters) == text_len)
|
||||
if (strcspn (text,
|
||||
gdb_completer_file_name_break_characters) == text_len)
|
||||
fn_list = make_source_files_completion_list (text, text);
|
||||
}
|
||||
|
||||
@ -331,7 +332,10 @@ location_completer (char *text, char *word)
|
||||
/* No completions at all. As the final resort, try completing
|
||||
on the entire text as a symbol. */
|
||||
list = make_symbol_completion_list (orig_text, word);
|
||||
xfree (fn_list);
|
||||
}
|
||||
else
|
||||
xfree (fn_list);
|
||||
|
||||
return list;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user