projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in fixes for rpm/instance lookup.
[awesomized/libmemcached]
/
clients
/
memrm.c
diff --git
a/clients/memrm.c
b/clients/memrm.c
index 8023a6387e4d07ffad09b7978c0d963a23de8837..d4d93c2e9c2621e80b3bc56613889f715802f231 100644
(file)
--- a/
clients/memrm.c
+++ b/
clients/memrm.c
@@
-81,8
+81,8
@@
int main(int argc, char *argv[])
{
fprintf(stderr, "memrm: %s: memcache error %s",
argv[optind], memcached_strerror(memc, rc));
{
fprintf(stderr, "memrm: %s: memcache error %s",
argv[optind], memcached_strerror(memc, rc));
- if (memc
->cached_errno
)
- fprintf(stderr, " system error %s", strerror(memc
->cached_errno
));
+ if (memc
ached_last_error_errno(memc)
)
+ fprintf(stderr, " system error %s", strerror(memc
ached_last_error_errno(memc)
));
fprintf(stderr, "\n");
return_code= -1;
fprintf(stderr, "\n");
return_code= -1;
@@
-95,6
+95,7
@@
int main(int argc, char *argv[])
if (opt_servers)
free(opt_servers);
if (opt_servers)
free(opt_servers);
+
if (opt_hash)
free(opt_hash);
if (opt_hash)
free(opt_hash);