From: Christopher Faulet Date: Thu, 12 May 2022 12:56:55 +0000 (+0200) Subject: MINOR: stream: Export stream_free() X-Git-Tag: v2.6-dev11~89 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab5d1dceed7c780e1a28096523f76ce28843d31a;p=thirdparty%2Fhaproxy.git MINOR: stream: Export stream_free() The stream_free() function is now public. It is mandatory to properly handle errors when a new applet is started. --- diff --git a/include/haproxy/stream.h b/include/haproxy/stream.h index 5660857d42..a469e4b355 100644 --- a/include/haproxy/stream.h +++ b/include/haproxy/stream.h @@ -60,6 +60,7 @@ extern struct pool_head *pool_head_uniqueid; extern struct data_cb sess_conn_cb; struct stream *stream_new(struct session *sess, struct conn_stream *cs, struct buffer *input); +void stream_free(struct stream *s); int stream_upgrade_from_cs(struct conn_stream *cs, struct buffer *input); int stream_set_http_mode(struct stream *s, const struct mux_proto_list *mux_proto); diff --git a/src/stream.c b/src/stream.c index 00abce656e..dd3358e485 100644 --- a/src/stream.c +++ b/src/stream.c @@ -580,7 +580,7 @@ struct stream *stream_new(struct session *sess, struct conn_stream *cs, struct b /* * frees the context associated to a stream. It must have been removed first. */ -static void stream_free(struct stream *s) +void stream_free(struct stream *s) { struct session *sess = strm_sess(s); struct proxy *fe = sess->fe;