aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
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 /gdb/tracepoint.c
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.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
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;