Update loader.c

Moved from pull request on master to 1.3.0(cherry picked from commit 93d0801668786b705bbdc677958fec8090cd66db)
Update json.c(cherry picked from commit 1aaf53377d048979da089bcdd3e69ce86124c8be)
Fix memory leak
(cherry picked from commit 728ca3d076bf11b28f7c41246447ef738cdfbfeb)

Conflicts:
	ext/mvc/view/engine/volt/compiler.c