summaryrefslogtreecommitdiff
path: root/extstore.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-04-11 22:19:25 -0700
committerdormando <dormando@rydia.net>2020-04-11 22:19:25 -0700
commite8361a358875ee48c783c915c03ce5a00c9a6157 (patch)
treee68b2fab68cc2552e30fbc3a8bb051c165f3bd0f /extstore.c
parentfbe1b1a7e4c5af844c978971c45410bcf918555e (diff)
downloadmemcached-e8361a358875ee48c783c915c03ce5a00c9a6157.tar.gz
extstore: fix some valgrind errors.
Diffstat (limited to 'extstore.c')
-rw-r--r--extstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extstore.c b/extstore.c
index b9e2fb7..9e2a981 100644
--- a/extstore.c
+++ b/extstore.c
@@ -115,7 +115,7 @@ static _store_wbuf *wbuf_new(size_t size) {
_store_wbuf *b = calloc(1, sizeof(_store_wbuf));
if (b == NULL)
return NULL;
- b->buf = malloc(size);
+ b->buf = calloc(size, sizeof(char));
if (b->buf == NULL) {
free(b);
return NULL;