]> granicus.if.org Git - fcron/commit
Replaced function free_safe by macro Free_safe, and moved memory management functions...
authorThibault Godouet <fcron@free.fr>
Wed, 21 Nov 2012 22:16:25 +0000 (22:16 +0000)
committerThibault Godouet <fcron@free.fr>
Wed, 21 Nov 2012 22:16:25 +0000 (22:16 +0000)
commit2fb87b0fe62c5bc9e70c91f13df1ca9e30939b4f
tree09882e062a459c27102d1ce5337ca8e147ce75cd
parent9354961b03900a6ded56979e53cdabf74ba8deb9
Replaced function free_safe by macro Free_safe, and moved memory management functions to new mem.h/mem.c.
free_safe() was broken, as the pointer was not set to NULL outside of free_safe(). Simplest/cleanest way to fix this was to replace it by a macro doing the same. Now the pointers are correctly set to NULL, and things are actually safe.
24 files changed:
Makefile.in
conf.c
convert-fcrontab.c
database.c
env_list.c
fcron.c
fcron.h
fcronconf.c
fcrondyn.c
fcronsighup.h
fcrontab.h
fifo_list.c
fileconf.c
global.h
job.c
log.c
mem.c [new file with mode: 0644]
mem.h [new file with mode: 0644]
read_string.c
socket.c
subs.c
subs.h
temp_file.c
u_list.c