2011-03-05 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sat, 5 Mar 2011 21:21:32 +0000 (21:21 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sat, 5 Mar 2011 21:21:32 +0000 (21:21 +0000)
* linux-tdep.c (linux_get_siginfo_type): Stop memory leak.

gdb/ChangeLog
gdb/linux-tdep.c

index 8d6a878584c7e1c3a02e8045dccbfdfa0be2ecd9..8336b7f67f2661fec257f93367cc362d244fcd59 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-05  Michael Snyder  <msnyder@vmware.com>
+
+       * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
+
 2011-03-04  Michael Snyder  <msnyder@vmware.com>
 
        * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
index c09d6e8719daca5d24db20017decec89ff0bf889..d5a15d59e56b53a23a04a3497e4a4d9f6d46a325 100644 (file)
@@ -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;