2011-03-01 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 1 Mar 2011 22:24:30 +0000 (22:24 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 1 Mar 2011 22:24:30 +0000 (22:24 +0000)
* tracepoint.c (create_tsv_from_upload): Superfluous call
to xstrdup.  Callee already calls xstrdup.

gdb/ChangeLog
gdb/tracepoint.c

index e9e1a9dbf5daa0035b96e7e3b8867587358122c5..65b960360cea305b29d245258fc5c20229eb6d60 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-01  Michael Snyder  <msnyder@vmware.com>
 
+       * tracepoint.c (create_tsv_from_upload): Superfluous call
+       to xstrdup.  Callee already calls xstrdup.
+
        * linespec.c (decode_line_1): Remove unnecessary null check.
 
        * tracepoint.c (scope_info): Fix mem leak, remove underused
index b5a2e0a6781ce678d8693c1ff25ed9049e67416c..e6dea4816f13f3fee4d4a0846f26b6c7eca11a94 100644 (file)
@@ -3190,7 +3190,7 @@ create_tsv_from_upload (struct uploaded_tsv *utsv)
     sprintf (buf, "%s_%d", namebase, try_num++);
 
   /* We have an available name, create the variable.  */
-  tsv = create_trace_state_variable (xstrdup (buf));
+  tsv = create_trace_state_variable (buf);
   tsv->initial_value = utsv->initial_value;
   tsv->builtin = utsv->builtin;