summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hiredis.c b/hiredis.c
index 4b4c11a..0297361 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -620,10 +620,10 @@ void redisFree(redisContext *c) {
}
int redisFreeKeepFd(redisContext *c) {
- int fd = c->fd;
- c->fd = -1;
- redisFree(c);
- return fd;
+ int fd = c->fd;
+ c->fd = -1;
+ redisFree(c);
+ return fd;
}
/* Connect to a Redis instance. On error the field error in the returned