summaryrefslogtreecommitdiff
path: root/src/ralloc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2008-06-02 06:00:54 +0000
committerJim Meyering <jim@meyering.net>2008-06-02 06:00:54 +0000
commitcdf90071d2422f8eebb4cdc1fa3e2c584c90784b (patch)
tree7ef2eba7d4a06c023f3160da5629c53fde6366f4 /src/ralloc.c
parentca80b43970689e26d878812e77bdf8b9be738acb (diff)
downloademacs-cdf90071d2422f8eebb4cdc1fa3e2c584c90784b.tar.gz
remove useless if-before-free tests
* lib-src/ebrowse.c (xfree): Likewise. * lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise. (popclass_above, Prolog_functions, Erlang_functions): Likewise. * lib-src/pop.c (pop_quit): Likewise. * lwlib/lwlib-Xm.c (xm_update_one_value): Likewise. * lwlib/lwlib.c (safe_free_str, free_widget_value_tree): Likewise. * src/editfns.c (Fset_time_zone_rule): Likewise. * src/lread.c (nosuffix): Likewise. * src/ralloc.c (get_bloc): Likewise. * src/regex.c (reg_free): Likewise. * src/xftfont.c (xftfont_open, xftfont_close): Likewise. * src/xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise. * src/xsmfns.c (smc_save_yourself_CB): Likewise.
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index 652cf3089a3..1c988283dbc 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -425,8 +425,7 @@ get_bloc (size)
if (! (new_bloc = (bloc_ptr) malloc (BLOC_PTR_SIZE))
|| ! (new_bloc->data = obtain (break_value, size)))
{
- if (new_bloc)
- free (new_bloc);
+ free (new_bloc);
return 0;
}