mirror of
https://https.git.savannah.gnu.org/git/diffutils.git
synced 2026-01-30 19:34:25 +00:00
maint/sc: remove useless if-before-free tests
* src/diff.c (compare-files): Remove useless if stmts. * src/dir.c (diff_dirs): Likewise. * cfg.mk (local-checks-to-skip): Remove sc_avoid_if_before_free.
This commit is contained in:
parent
8075840b39
commit
cb0791d7a4
1
cfg.mk
1
cfg.mk
@ -32,7 +32,6 @@ gpg_key_ID = B9AB9A16
|
||||
|
||||
# Tests not to run as part of "make distcheck".
|
||||
local-checks-to-skip = \
|
||||
sc_avoid_if_before_free \
|
||||
sc_cast_of_x_alloc_return_value \
|
||||
sc_error_message_period \
|
||||
sc_error_message_uppercase \
|
||||
|
||||
@ -1314,10 +1314,8 @@ compare_files (struct comparison const *parent,
|
||||
pfatal_with_name (_("standard output"));
|
||||
}
|
||||
|
||||
if (free0)
|
||||
free (free0);
|
||||
if (free1)
|
||||
free (free1);
|
||||
free (free0);
|
||||
free (free1);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user