Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update deps/hiredis/example.c #670

Open
wants to merge 1 commit into from

2 participants

@lukviz

redisFree() to disconnect and free the context

lukviz Update deps/hiredis/example.c
redisFree() to disconnect and free the context
ddabac9
@hupantingxue

On the line 60, if reply is null, "reply->type" operation will cause fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 13, 2012
  1. Update deps/hiredis/example.c

    lukviz authored
    redisFree() to disconnect and free the context
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  deps/hiredis/example.c
View
1  deps/hiredis/example.c
@@ -63,6 +63,7 @@ int main(void) {
}
}
freeReplyObject(reply);
+ redisFree(c);
return 0;
}
Something went wrong with that request. Please try again.