From: Michael Snyder Date: Tue, 1 Mar 2011 22:24:30 +0000 (+0000) Subject: 2011-03-01 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0aa28782e9800c7e2ff19a4be977ba93f049297;p=binutils-gdb.git 2011-03-01 Michael Snyder * tracepoint.c (create_tsv_from_upload): Superfluous call to xstrdup. Callee already calls xstrdup. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e9e1a9dbf5d..65b960360ce 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2011-03-01 Michael Snyder + * 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 b5a2e0a6781..e6dea4816f1 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;