Skip to content

Commit

Permalink
Chack for shared qb in freeClient
Browse files Browse the repository at this point in the history
  • Loading branch information
uriyage committed May 5, 2024
1 parent a003b4b commit 2995d28
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 @@ -1617,7 +1617,7 @@ void freeClient(client *c) {
}

/* Free the query buffer */
sdsfree(c->querybuf);
if (c->querybuf != shared_qb) sdsfree(c->querybuf);
c->querybuf = NULL;

/* Deallocate structures used to block on blocking ops. */
Expand Down

0 comments on commit 2995d28

Please sign in to comment.