Created
January 29, 2017 04:24
-
-
Save stan1y/e4b62565d3540174f44231b4014da07f to your computer and use it in GitHub Desktop.
Revisions
-
stan1y created this gist
Jan 29, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ diff --git a/examples/pgsql/src/pgsql.c b/examples/pgsql/src/pgsql.c index 3553bfc..e377b7d 100644 --- a/examples/pgsql/src/pgsql.c +++ b/examples/pgsql/src/pgsql.c @@ -126,6 +126,9 @@ request_perform_query(struct http_request *req) { struct rstate *state = req->hdlr_extra; + kore_pgsql_cleanup(&state->sql); + return HTTP_STATE_COMPLETE; + /* We want to move to read result after this. */ req->fsm_state = REQ_STATE_DB_WAIT;