Skip to content

Instantly share code, notes, and snippets.

@stan1y
Created January 29, 2017 04:24
Show Gist options
  • Save stan1y/e4b62565d3540174f44231b4014da07f to your computer and use it in GitHub Desktop.
Save stan1y/e4b62565d3540174f44231b4014da07f to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment