btrfs-progs: fix scrub socket leak
authorZach Brown <zab@redhat.com>
Wed, 23 Jan 2013 22:36:03 +0000 (14:36 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:40 +0000 (16:09 -0800)
commitcb4c601a4e7cf33102a0667799eb0ec603067ee8
tree5e5006aa2e0496e53c04294acf1769fef7bf5da6
parent09fac3824db462368f24d3dd4deccafedf5b3c8c
btrfs-progs: fix scrub socket leak

If connection fails the socket is leaked when the status file is used
instead.  Close it to trivially cut down on fd use and to bring down the
noise in static code analysis.

Signed-off-by: Zach Brown <zab@redhat.com>
cmds-scrub.c