From: Brian Aker Date: Wed, 2 Jan 2013 08:10:59 +0000 (-0500) Subject: Fix cppcheck warning. X-Git-Tag: 1.0.16~18^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b68c6367078bc7e79b6630fbe87b1a96200f8fb9;p=m6w6%2Flibmemcached Fix cppcheck warning. --- diff --git a/clients/memcp.cc b/clients/memcp.cc index 1551a1d5..f59e1d8c 100644 --- a/clients/memcp.cc +++ b/clients/memcp.cc @@ -250,6 +250,7 @@ int main(int argc, char *argv[]) if (memcached_failed(rc)) { std::cerr << "Error occrrured during memcached_set(): " << memcached_last_error_message(memc) << std::endl; + ::close(fd); exit_code= EXIT_FAILURE; }