mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Assume `free (NULL)' works.
This commit is contained in:
1 parent
c73cf11291
commit
258fbb8860
4 files changed
+4
-8
No files matched your search
@@ -1543,8 +1543,7 @@ dd_copy (void)
|
||||
}
|
||||
|
||||
free (real_buf);
|
||||
if (real_obuf)
|
||||
free (real_obuf);
|
||||
free (real_obuf);
|
||||
|
||||
if ((conversions_mask & C_FDATASYNC) && fdatasync (STDOUT_FILENO) != 0)
|
||||
{
|
||||
|
||||
@@ -591,8 +591,7 @@ show_point (const char *point, const struct stat *statp)
|
||||
}
|
||||
}
|
||||
|
||||
if (resolved)
|
||||
free (resolved);
|
||||
free (resolved);
|
||||
|
||||
if (best_match
|
||||
&& (stat (best_match->me_mountdir, &disk_stats) != 0
|
||||
|
||||
+1
-2
@@ -364,8 +364,7 @@ dc_parse_stream (FILE *fp, const char *filename)
|
||||
}
|
||||
|
||||
free (keywd);
|
||||
if (arg)
|
||||
free (arg);
|
||||
free (arg);
|
||||
}
|
||||
|
||||
return ok;
|
||||
|
||||
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user