projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Add in proper depend tracking for tests/testapp.
[m6w6/libmemcached]
/
libmemcached
/
analyze.c
diff --git
a/libmemcached/analyze.c
b/libmemcached/analyze.c
index de628a72a75d5604dc19349d00fc9517e0258d43..7dcbf8cb3bcc255b601a3bfbfbdb021b1c1809d8 100644
(file)
--- a/
libmemcached/analyze.c
+++ b/
libmemcached/analyze.c
@@
-67,10
+67,10
@@
memcached_analysis_st *memcached_analyze(memcached_st *memc,
uint64_t total_get_cmds= 0, total_get_hits= 0;
uint32_t server_count, x;
memcached_analysis_st *result;
uint64_t total_get_cmds= 0, total_get_hits= 0;
uint32_t server_count, x;
memcached_analysis_st *result;
-
+
*error= MEMCACHED_SUCCESS;
server_count= memcached_server_count(memc);
*error= MEMCACHED_SUCCESS;
server_count= memcached_server_count(memc);
- result= (memcached_analysis_st*)calloc(memc
->number_of_hosts
,
+ result= (memcached_analysis_st*)calloc(memc
ached_server_count(memc)
,
sizeof(memcached_analysis_st));
if (!result)
sizeof(memcached_analysis_st));
if (!result)
@@
-79,7
+79,6
@@
memcached_analysis_st *memcached_analyze(memcached_st *memc,
return NULL;
}
return NULL;
}
- result->options.allocated= true;
result->root= memc;
for (x= 0; x < server_count; x++)
result->root= memc;
for (x= 0; x < server_count; x++)
@@
-104,6
+103,5
@@
memcached_analysis_st *memcached_analyze(memcached_st *memc,
void memcached_analyze_free(memcached_analysis_st *ptr)
{
void memcached_analyze_free(memcached_analysis_st *ptr)
{
- if (ptr->options.allocated)
- free(ptr);
+ free(ptr);
}
}