projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updating to remove memory leak in functions.c (aka test cases).
[m6w6/libmemcached]
/
src
/
memcat.c
diff --git
a/src/memcat.c
b/src/memcat.c
index 1c9082f55a886a101f60f7517e19de37e0571786..1ee024279620ac982066d865f2948d13992a3b8b 100644
(file)
--- a/
src/memcat.c
+++ b/
src/memcat.c
@@
-1,9
+1,10
@@
#include <stdio.h>
#include <stdio.h>
+#include <stdint.h>
+#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <memcached.h>
#include <unistd.h>
#include <getopt.h>
#include <memcached.h>
-#include "client_options.h"
#include "utilities.h"
#define PROGRAM_NAME "memcat"
#include "utilities.h"
#define PROGRAM_NAME "memcat"
@@
-68,8
+69,11
@@
int main(int argc, char *argv[])
}
else if (rc != MEMCACHED_NOTFOUND)
{
}
else if (rc != MEMCACHED_NOTFOUND)
{
- fprintf(stderr, "memcat: %s: memcache error %s
\n
",
+ fprintf(stderr, "memcat: %s: memcache error %s",
argv[optind], memcached_strerror(memc, rc));
argv[optind], memcached_strerror(memc, rc));
+ if (memc->cached_errno)
+ fprintf(stderr, " system error %s", strerror(memc->cached_errno));
+ fprintf(stderr, "\n");
}
optind++;
}
}
optind++;
}