aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cplus-dem.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2011-04-20 19:06:46 +0000
committerDJ Delorie <dj@redhat.com>2011-04-20 19:06:46 +0000
commit4ff224cb8d9347245ffea0f5853d862f0574452e (patch)
treef0ad924656bb6f1332030f73e18939949db327f0 /libiberty/cplus-dem.c
parente7782cf63b834cc4c4d159dcb6e3a9908b12432f (diff)
downloadgdb-4ff224cb8d9347245ffea0f5853d862f0574452e.zip
gdb-4ff224cb8d9347245ffea0f5853d862f0574452e.tar.gz
gdb-4ff224cb8d9347245ffea0f5853d862f0574452e.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r--libiberty/cplus-dem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 84f94b6..e948487 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -1311,8 +1311,7 @@ delete_non_B_K_work_stuff (struct work_stuff *work)
int i;
for (i = 0; i < work->ntmpl_args; i++)
- if (work->tmpl_argvec[i])
- free ((char*) work->tmpl_argvec[i]);
+ free ((char*) work->tmpl_argvec[i]);
free ((char*) work->tmpl_argvec);
work->tmpl_argvec = NULL;