newbuild: amr: fix massive memory leak in decoder init
newbuild: amr: fix NULL dereferencing and useless nullifying