Skip to content

Commit

Permalink
plugins: in_http: memory leak correction
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Feb 21, 2022
1 parent 9a28cba commit 1b01cef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/in_http/http_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ int http_conn_del(struct http_conn *conn)

ctx = conn->ctx;

if (conn->session.channel != NULL) {
mk_channel_release(conn->session.channel);
}

mk_event_del(ctx->evl, &conn->event);
mk_list_del(&conn->_head);
flb_socket_close(conn->fd);
Expand Down

0 comments on commit 1b01cef

Please sign in to comment.