mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
2011-02-28 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (catch_syscall_completer): Free malloced list.
This commit is contained in:
@ -11360,8 +11360,11 @@ catch_syscall_completer (struct cmd_list_element *cmd,
|
||||
char *text, char *word)
|
||||
{
|
||||
const char **list = get_syscall_names ();
|
||||
char **retlist
|
||||
= (list == NULL) ? NULL : complete_on_enum (list, text, word);
|
||||
|
||||
return (list == NULL) ? NULL : complete_on_enum (list, text, word);
|
||||
xfree (list);
|
||||
return retlist;
|
||||
}
|
||||
|
||||
/* Tracepoint-specific operations. */
|
||||
|
Reference in New Issue
Block a user