gf_inline_time.c: fix memory leak
gf_inline_time.c: fix memory leak

Free all with malloc allocated memory before exit. Change
if checks against 'w' to be a if-else check to prevent checking
after already matched.

Signed-off-by: Danny Al-Gaaf <473e39ac77cf392f0dd9bacde8409de76c14d006@bisect.de>

cedricde/gf-complete,ceph/gf-complete,zzxuanyuan/gf-complete,cedricde/gf-complete,ceph/gf-complete,zzxuanyuan/gf-complete,ceph/gf-complete