comparison lib-src/ebrowse.c @ 95479:9588c3703f38

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.
author Jim Meyering <jim@meyering.net>
date Mon, 02 Jun 2008 06:00:54 +0000
parents 3a4bc081639c
children 1c16540a2329
comparison
equal deleted inserted replaced
95478:e21a3997eb7c 95479:9588c3703f38
593 593
594 void 594 void
595 xfree (p) 595 xfree (p)
596 void *p; 596 void *p;
597 { 597 {
598 if (p) 598 free (p);
599 free (p);
600 } 599 }
601 600
602 601
603 /* Like strdup, but print an error and exit if not enough memory is 602 /* Like strdup, but print an error and exit if not enough memory is
604 available.. If S is null, return null. */ 603 available.. If S is null, return null. */