aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-01 22:24:30 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-01 22:24:30 +0000
commita0aa28782e9800c7e2ff19a4be977ba93f049297 (patch)
tree7fac83945ea4f8f32c1963feb608626aaa3319a5
parente325fb69b4ae1a9f5d276672a883e864861d90d8 (diff)
downloadgdb-a0aa28782e9800c7e2ff19a4be977ba93f049297.zip
gdb-a0aa28782e9800c7e2ff19a4be977ba93f049297.tar.gz
gdb-a0aa28782e9800c7e2ff19a4be977ba93f049297.tar.bz2
2011-03-01 Michael Snyder <msnyder@vmware.com>
* tracepoint.c (create_tsv_from_upload): Superfluous call to xstrdup. Callee already calls xstrdup.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/tracepoint.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e9e1a9d..65b9603 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index b5a2e0a..e6dea48 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -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;