Unverified Commit adc5a321 authored by sundb's avatar sundb Committed by GitHub
Browse files

Use dismissMemory to dismiss COW of client output buffer (#10403)

c->buf is not sds, so we should use dismissMemory instead of dismissSds to dismiss it.
This is a recent regression from #10371
parent b104f3ca
......@@ -6418,7 +6418,7 @@ void dismissMemory(void* ptr, size_t size_hint) {
/* Dismiss big chunks of memory inside a client structure, see dismissMemory() */
void dismissClientMemory(client *c) {
/* Dismiss client query buffer and static reply buffer. */
dismissSds(c->buf);
dismissMemory(c->buf, c->buf_usable_size);
dismissSds(c->querybuf);
dismissSds(c->pending_querybuf);
/* Dismiss argv array only if we estimate it contains a big buffer. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment