aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-05 21:21:32 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-05 21:21:32 +0000
commite3aa49afd531648e9ec803d3b4f71efbedbc54ee (patch)
treefaa86b42a5eaaaae4155c5ea1cdad750e08fe563 /gdb/linux-tdep.c
parentdd19bd705997cb871237ffe6883c48130303a90e (diff)
downloadgdb-e3aa49afd531648e9ec803d3b4f71efbedbc54ee.zip
gdb-e3aa49afd531648e9ec803d3b4f71efbedbc54ee.tar.gz
gdb-e3aa49afd531648e9ec803d3b4f71efbedbc54ee.tar.bz2
2011-03-05 Michael Snyder <msnyder@vmware.com>
* linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
Diffstat (limited to 'gdb/linux-tdep.c')
-rw-r--r--gdb/linux-tdep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c
index c09d6e8..d5a15d5 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -76,20 +76,20 @@ linux_get_siginfo_type (struct gdbarch *gdbarch)
append_composite_type_field (sigval_type, "sival_ptr", void_ptr_type);
/* __pid_t */
- pid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF, TYPE_LENGTH (int_type),
- xstrdup ("__pid_t"));
+ pid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
+ TYPE_LENGTH (int_type), "__pid_t");
TYPE_TARGET_TYPE (pid_type) = int_type;
TYPE_TARGET_STUB (pid_type) = 1;
/* __uid_t */
- uid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF, TYPE_LENGTH (uint_type),
- xstrdup ("__uid_t"));
+ uid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
+ TYPE_LENGTH (uint_type), "__uid_t");
TYPE_TARGET_TYPE (uid_type) = uint_type;
TYPE_TARGET_STUB (uid_type) = 1;
/* __clock_t */
- clock_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF, TYPE_LENGTH (long_type),
- xstrdup ("__clock_t"));
+ clock_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
+ TYPE_LENGTH (long_type), "__clock_t");
TYPE_TARGET_TYPE (clock_type) = long_type;
TYPE_TARGET_STUB (clock_type) = 1;