summaryrefslogtreecommitdiff
path: root/src/networking.c
diff options
context:
space:
mode:
authorQu Chen <QuChen88@users.noreply.github.com>2021-08-09 01:03:59 -0700
committerGitHub <noreply@github.com>2021-08-09 11:03:59 +0300
commit0b643e930d978862b3284ba742fba1a659832b8c (patch)
tree8e6e06440dec395a0b75d55cbf3b12827eb8ad44 /src/networking.c
parentd3356bf614155f2a4352a0630065d715ce073b8a (diff)
downloadredis-0b643e930d978862b3284ba742fba1a659832b8c.tar.gz
Cleanup: createAOFClient uses createClient to avoid overlooked mismatches (#9338)
AOF fake client creation (createAOFClient) was doing similar work as createClient, with some minor differences, most of which unintended, this was dangerous and meant that many changes to createClient should have always been reflected to aof.c This cleanup changes createAOFClient to call createClient with NULL, like we do in module.c and elsewhere.
Diffstat (limited to 'src/networking.c')
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 9753e3f61..3ab9b3e5b 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -1184,7 +1184,7 @@ void freeClientOriginalArgv(client *c) {
c->original_argc = 0;
}
-static void freeClientArgv(client *c) {
+void freeClientArgv(client *c) {
int j;
for (j = 0; j < c->argc; j++)
decrRefCount(c->argv[j]);