summaryrefslogtreecommitdiff
path: root/sysdeps/posix/sprofil.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-03-26 11:22:19 +0000
committerJakub Jelinek <jakub@redhat.com>2008-03-26 11:22:19 +0000
commitf23e5ee26d14b7931c65e5df0bf46ff356c6177b (patch)
tree7ec5160f8a03894ed0f4be9a1c312ed5bffdc7e5 /sysdeps/posix/sprofil.c
parentd0b6ac6c5023a223e150c49c422c7ad2bd99456c (diff)
Updated to fedora-glibc-20080326T1041cvs/fedora-glibc-2_7_90-12
Diffstat (limited to 'sysdeps/posix/sprofil.c')
-rw-r--r--sysdeps/posix/sprofil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/posix/sprofil.c b/sysdeps/posix/sprofil.c
index 853038d078..6ffce4d783 100644
--- a/sysdeps/posix/sprofil.c
+++ b/sysdeps/posix/sprofil.c
@@ -322,8 +322,7 @@ __sprofil (struct prof *profp, int profcnt, struct timeval *tvp,
for (i = 0; i < profcnt; ++i)
if (add_region (p[i], (flags & PROF_UINT) != 0) < 0)
{
- if (prof_info.region)
- free (prof_info.region);
+ free (prof_info.region);
prof_info.num_regions = 0;
prof_info.region = NULL;
return -1;