projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Refactor test system to give me times on calling tests (frankly I still need
[m6w6/libmemcached]
/
lib
/
memcached.c
diff --git
a/lib/memcached.c
b/lib/memcached.c
index 68c5d3c5ffbbaa3f081fb5b6736d71d603b5dca1..0bab79580661fc79781e7286d54389e224a8e3b3 100644
(file)
--- a/
lib/memcached.c
+++ b/
lib/memcached.c
@@
-3,7
+3,7
@@
*/
#include "common.h"
*/
#include "common.h"
-memcached_st *memcached_
init
(memcached_st *ptr)
+memcached_st *memcached_
create
(memcached_st *ptr)
{
if (!ptr)
{
{
if (!ptr)
{
@@
-23,10
+23,11
@@
memcached_st *memcached_init(memcached_st *ptr)
return ptr;
}
return ptr;
}
-void memcached_
deinit
(memcached_st *ptr)
+void memcached_
free
(memcached_st *ptr)
{
if (ptr->hosts)
{
{
if (ptr->hosts)
{
+ memcached_quit(ptr);
memcached_server_list_free(ptr->hosts);
ptr->hosts= NULL;
}
memcached_server_list_free(ptr->hosts);
ptr->hosts= NULL;
}