Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
7583ebb1
Commit
7583ebb1
authored
Nov 09, 2022
by
michael-grunder
Committed by
Michael Grunder
Nov 09, 2022
Browse files
Make freeing a NULL redisAsyncContext a no op.
This makes our behavior consistent with redisFree and freeReplyObject.
parent
2c53dea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
7583ebb1
...
...
@@ -413,7 +413,11 @@ static void __redisAsyncFree(redisAsyncContext *ac) {
* free'ing. To do so, a flag is set on the context which is picked up by
* redisProcessCallbacks(). Otherwise, the context is immediately free'd. */
void
redisAsyncFree
(
redisAsyncContext
*
ac
)
{
if
(
ac
==
NULL
)
return
;
redisContext
*
c
=
&
(
ac
->
c
);
c
->
flags
|=
REDIS_FREEING
;
if
(
!
(
c
->
flags
&
REDIS_IN_CALLBACK
))
__redisAsyncFree
(
ac
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment