pandora-build v0.79. Added support for generating HEX version.
[awesomized/libmemcached] / libmemcached / memcached.hpp
index c1ca1bd2737040a16328b3908ef329483389765c..d7086b4ce301ea11a876fdcb3a20f8b0831a009a 100644 (file)
@@ -238,6 +238,11 @@ public:
       key.assign(ret_key);
       free(value);
     }
+    else if (value)
+    {
+      free(value);
+    }
+
     return rc;
   }
 
@@ -920,6 +925,14 @@ public:
     return version;
   }
 
+  /**
+   * Retrieve memcached statistics. Populate a std::map with the retrieved
+   * stats. Each server will map to another std::map of the key:value stats.
+   *
+   * @param[out] stats_map a std::map to be populated with the memcached
+   *                       stats
+   * @return true on success; false otherwise
+   */
   bool getStats(std::map< std::string, std::map<std::string, std::string> >
                 &stats_map)
   {