Replace free() with mh_free0()
authorm@mmmmarascio.xyz <m@mmmmarascio.xyz>
Tue, 22 Mar 2016 03:28:44 +0000 (20:28 -0700)
committerPhilipp Takacs <philipp@bureaucracy.de>
Fri, 25 Mar 2016 22:26:18 +0000 (23:26 +0100)
commitd4c34b4439a9dbd89664de460ed37ecddc260fb1
tree311954207a5d2c3c0129e91af4ecce2ad569ca95
parentb78007de9802005825390bee71dfce2306b42519
Replace free() with mh_free0()

mh_free0() free's the memmory and set's the pointer to NULL after
the free. This avoids doublefree and dereferenc of a non valid poiter.
52 files changed:
h/utils.h
sbr/addrsbr.c
sbr/context_del.c
sbr/context_read.c
sbr/context_replace.c
sbr/crawl_folders.c
sbr/encode_rfc2047.c
sbr/fmt_compile.c
sbr/fmt_new.c
sbr/fmt_rfc2047.c
sbr/folder_free.c
sbr/folder_read.c
sbr/folder_realloc.c
sbr/lock_file.c
sbr/m_draft.c
sbr/mf.c
sbr/readconfig.c
sbr/seq_read.c
sbr/seq_setprev.c
sbr/seq_setunseen.c
sbr/utils.c
uip/ali.c
uip/aliasbr.c
uip/anno.c
uip/ap.c
uip/burst.c
uip/distsbr.c
uip/folder.c
uip/forw.c
uip/inc.c
uip/mhbuild.c
uip/mhfree.c
uip/mhl.c
uip/mhlist.c
uip/mhlistsbr.c
uip/mhmisc.c
uip/mhparse.c
uip/mhshow.c
uip/mhshowsbr.c
uip/mhstore.c
uip/mhtest.c
uip/new.c
uip/pick.c
uip/rcvdist.c
uip/refile.c
uip/repl.c
uip/rmf.c
uip/scan.c
uip/slocal.c
uip/sortm.c
uip/spost.c
uip/whom.c