armon/consul-api — pull request #8 by fugr (2014-11-24 03:07:50+00:00)
Title: resp.Body.Close()

functions call decodeBody() have "defer resp.Body.Close()",so resp.Body.Close() may exec twice.