aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-msdos.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/pex-msdos.c
parente7782cf63b834cc4c4d159dcb6e3a9908b12432f (diff)
downloadgdb-4ff224cb8d9347245ffea0f5853d862f0574452e.zip
gdb-4ff224cb8d9347245ffea0f5853d862f0574452e.tar.gz
gdb-4ff224cb8d9347245ffea0f5853d862f0574452e.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/pex-msdos.c')
-rw-r--r--libiberty/pex-msdos.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libiberty/pex-msdos.c b/libiberty/pex-msdos.c
index 4b77bf6..fa0f40a 100644
--- a/libiberty/pex-msdos.c
+++ b/libiberty/pex-msdos.c
@@ -310,10 +310,8 @@ pex_msdos_cleanup (struct pex_obj *obj)
ms = (struct pex_msdos *) obj->sysdep;
for (i = 0; i < PEX_MSDOS_FILE_COUNT; ++i)
- if (msdos->files[i] != NULL)
- free (msdos->files[i]);
- if (msdos->statuses != NULL)
- free (msdos->statuses);
+ free (msdos->files[i]);
+ free (msdos->statuses);
free (msdos);
obj->sysdep = NULL;
}