vzmemcheck: do not leak open fd

Reorder the code so conditional returns from a function happen
before opening a file.

http://bugzilla.openvz.org/1307

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed