parasite: fix error paths in parasite_init
parasite: fix error paths in parasite_init

* Call restore_ns on error paths.
* Use close_safe for the socket, because it can be reused

CID 996194 (#1 of 3): Resource leak (RESOURCE_LEAK)
6. leaked_handle: Handle variable "rst" going out of scope leaks the
handle.

Signed-off-by: Andrey Vagin <74c05afa918858348d6db8037d82fa8124870113@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

efiop/criu,svloyso/criu,tych0/criu,LK4D4/criu,gonkulator/criu,rentzsch/criu,fbocharov/criu,marcosnils/criu,LK4D4/criu,AuthenticEshkinKot/criu,marcosnils/criu,marcosnils/criu,eabatalov/criu,fbocharov/criu,eabatalov/criu,gablg1/criu,rentzsch/criu,tych0/criu,efiop/criu,fbocharov/criu,wtf42/criu,ldu4/criu,tych0/criu,biddyweb/criu,svloyso/criu,eabatalov/criu,kawamuray/criu,gonkulator/criu,biddyweb/criu,svloyso/criu,eabatalov/criu,ldu4/criu,gablg1/criu,rentzsch/criu,KKoukiou/criu-remote,rentzsch/criu,kawamuray/criu,LK4D4/criu,sdgdsffdsfff/criu,svloyso/criu,wtf42/criu,wtf42/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,ldu4/criu,svloyso/criu,rentzsch/criu,LK4D4/criu,KKoukiou/criu-remote,kawamuray/criu,fbocharov/criu,sdgdsffdsfff/criu,KKoukiou/criu-remote,LK4D4/criu,KKoukiou/criu-remote,AuthenticEshkinKot/criu,gonkulator/criu,wtf42/criu,kawamuray/criu,sdgdsffdsfff/criu,gonkulator/criu,efiop/criu,efiop/criu,biddyweb/criu,marcosnils/criu,gonkulator/criu,gablg1/criu,gablg1/criu,fbocharov/criu,kawamuray/criu,gonkulator/criu,LK4D4/criu,sdgdsffdsfff/criu,gablg1/criu,marcosnils/criu,svloyso/criu,eabatalov/criu,sdgdsffdsfff/criu,eabatalov/criu,rentzsch/criu,wtf42/criu,tych0/criu,ldu4/criu,biddyweb/criu,kawamuray/criu,fbocharov/criu,KKoukiou/criu-remote,efiop/criu,AuthenticEshkinKot/criu,ldu4/criu,marcosnils/criu,ldu4/criu,tych0/criu,AuthenticEshkinKot/criu,gablg1/criu,efiop/criu,tych0/criu,wtf42/criu,biddyweb/criu,sdgdsffdsfff/criu,biddyweb/criu,AuthenticEshkinKot/criu