summaryrefslogtreecommitdiff
path: root/src/head.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-05-12 07:54:10 +0000
committerJim Meyering <jim@meyering.net>2005-05-12 07:54:10 +0000
commit258fbb886034baf260e1a5ed5c3446cce9fa6fb4 (patch)
tree611c0b524410f7ca65cf0a8af748fa052f231254 /src/head.c
parentc73cf112919e9b66189cc67303203e5d0612ba86 (diff)
downloadcoreutils-258fbb886034baf260e1a5ed5c3446cce9fa6fb4.tar.xz
Assume `free (NULL)' works.
Diffstat (limited to 'src/head.c')
-rw-r--r--src/head.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/head.c b/src/head.c
index 3b54e8849..253ace50e 100644
--- a/src/head.c
+++ b/src/head.c
@@ -392,8 +392,7 @@ elide_tail_bytes_pipe (const char *filename, int fd, uintmax_t n_elide_0)
free_mem:;
for (i = 0; i < n_bufs; i++)
- if (b[i])
- free (b[i]);
+ free (b[i]);
free (b);
return ok;