Skip to content

Commit

Permalink
Handle the case where thread_shared_qb is not initialize
Browse files Browse the repository at this point in the history
Signed-off-by: Uri Yagelnik <[email protected]>
  • Loading branch information
uriyage committed May 13, 2024
1 parent 41b7c79 commit 2041fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ void freeClient(client *c) {
}

/* Free the query buffer */
if (c->querybuf == thread_shared_qb) {
if (c->querybuf && c->querybuf == thread_shared_qb) {
sdsclear(c->querybuf);
} else {
sdsfree(c->querybuf);
Expand Down

0 comments on commit 2041fc3

Please sign in to comment.