diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/hurd/if_index.c | 3 | ||||
-rw-r--r-- | sysdeps/posix/sprofil.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/if_index.c b/sysdeps/mach/hurd/if_index.c index 664a3a1..4ecda22 100644 --- a/sysdeps/mach/hurd/if_index.c +++ b/sysdeps/mach/hurd/if_index.c @@ -59,8 +59,7 @@ if_freenameindex (struct if_nameindex *ifn) struct if_nameindex *ptr = ifn; while (ptr->if_name || ptr->if_index) { - if (ptr->if_name) - free (ptr->if_name); + free (ptr->if_name); ++ptr; } free (ifn); diff --git a/sysdeps/posix/sprofil.c b/sysdeps/posix/sprofil.c index 853038d..6ffce4d 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; |