From: Michael Snyder Date: Sat, 5 Mar 2011 21:21:32 +0000 (+0000) Subject: 2011-03-05 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3aa49afd531648e9ec803d3b4f71efbedbc54ee;p=binutils-gdb.git 2011-03-05 Michael Snyder * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8d6a878584c..8336b7f67f2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-03-05 Michael Snyder + + * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. + 2011-03-04 Michael Snyder * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index c09d6e8719d..d5a15d59e56 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;