tools/xenstore: get_handle: use "goto err" error handling style
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 15 Sep 2017 12:42:38 +0000 (13:42 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 11 Oct 2017 11:51:22 +0000 (12:51 +0100)
commit0e318c7b354dcd5347f7c327231f2b47cba7d7e0
treedad1632bc76438fd799cee8b18013eaf2830c2b7
parentc688dceca59fbcbe2be6297fb92b60e1b7050f12
tools/xenstore: get_handle: use "goto err" error handling style

Replace the ad-hoc exit clauses with the error handling style where
  - local variables contain either things to be freed, or sentinels
  - all error exits go via an "err" label which frees everything

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/xs.c