summaryrefslogtreecommitdiff
path: root/src/defrag.c
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2021-01-04 23:16:19 +0200
committerGitHub <noreply@github.com>2021-01-04 23:16:19 +0200
commitdf9c213bb0b90c57867d25d272729d8492244582 (patch)
tree6017da2b3295d8d51e091def5edf4d5d168bbef3 /src/defrag.c
parent9dcdc7e79a25968fcdfde09c7ca72a2012a1febf (diff)
downloadredis-df9c213bb0b90c57867d25d272729d8492244582.tar.gz
remove unused call to zmalloc_size in defrag.c (#8285)
Diffstat (limited to 'src/defrag.c')
-rw-r--r--src/defrag.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/defrag.c b/src/defrag.c
index fc327c506..e189deddd 100644
--- a/src/defrag.c
+++ b/src/defrag.c
@@ -58,7 +58,6 @@ void* activeDefragAlloc(void *ptr) {
void *newptr;
if(!je_get_defrag_hint(ptr)) {
server.stat_active_defrag_misses++;
- size = zmalloc_size(ptr);
return NULL;
}
/* move this allocation to a new allocation.