2011-03-01 Michael Snyder <msnyder@vmware.com>
* tracepoint.c (create_tsv_from_upload): Superfluous call to xstrdup. Callee already calls xstrdup.
This commit is contained in:
parent
e325fb69b4
commit
a0aa28782e
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue