aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-28 18:48:18 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-28 18:48:18 +0000
commitc38eea1ac5c05edb0dd52cfe35d1cc6f84b8d0f3 (patch)
treeffeb9050caf85cea5e80b5b2688f58f72969b2a4 /gdb/breakpoint.c
parent3ef09ab52201a68f7fae8922f312f45c9e1ab653 (diff)
downloadgdb-c38eea1ac5c05edb0dd52cfe35d1cc6f84b8d0f3.zip
gdb-c38eea1ac5c05edb0dd52cfe35d1cc6f84b8d0f3.tar.gz
gdb-c38eea1ac5c05edb0dd52cfe35d1cc6f84b8d0f3.tar.bz2
2011-02-28 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (catch_syscall_completer): Free malloced list.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 84b1c8d..bb9927c 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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. */