Fix cppcheck warning.
authorBrian Aker <brian@tangent.org>
Wed, 2 Jan 2013 08:10:59 +0000 (03:10 -0500)
committerBrian Aker <brian@tangent.org>
Wed, 2 Jan 2013 08:10:59 +0000 (03:10 -0500)
clients/memcp.cc

index 1551a1d50b3109d338a5d5c9ab0800b3de6f6ac9..f59e1d8c093f70df8eacae0954694911cbc963ad 100644 (file)
@@ -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;
     }