diff options
author | dormando <dormando@rydia.net> | 2020-04-11 22:19:25 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-04-11 22:19:25 -0700 |
commit | e8361a358875ee48c783c915c03ce5a00c9a6157 (patch) | |
tree | e68b2fab68cc2552e30fbc3a8bb051c165f3bd0f /extstore.c | |
parent | fbe1b1a7e4c5af844c978971c45410bcf918555e (diff) | |
download | memcached-e8361a358875ee48c783c915c03ce5a00c9a6157.tar.gz |
extstore: fix some valgrind errors.
Diffstat (limited to 'extstore.c')
-rw-r--r-- | extstore.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |