ssld: fix memleak

same as r29199 ircd-ratbox:
free zlib_stream_t with the rest of the conn_t
This commit is contained in:
Valerii Iatsko 2016-02-05 15:02:47 +01:00 committed by William Pitcock
parent 56f1d769bd
commit b1f028e5d4

View file

@ -209,6 +209,7 @@ free_conn(conn_t * conn)
zlib_stream_t *stream = conn->stream; zlib_stream_t *stream = conn->stream;
inflateEnd(&stream->instream); inflateEnd(&stream->instream);
deflateEnd(&stream->outstream); deflateEnd(&stream->outstream);
rb_free(stream);
} }
#endif #endif
rb_free(conn); rb_free(conn);