Core: fixed resource leak if binary upgrade fails due to no memory.

Found by Coverity (CID 992320).


git-svn-id: svn://svn.nginx.org/nginx/trunk@5123 73f98a42-aea0-e011-b76d-00259023448c