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:
Michael Snyder 2011-03-01 22:24:30 +00:00
parent e325fb69b4
commit a0aa28782e
2 changed files with 4 additions and 1 deletions

View 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

View 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;