### Is there an existing issue for the same bug? - [X] I have checked the existing issues. ### Environment ```Markdown - Version or commit-id (e.g. v0.1.0 or 8b23a93): - Hardware parameters: - OS type: - Others: ``` ### Actual Behavior mem leak if compress enabled ### Expected Behavior no mem leak if compress enabled ### Steps to Reproduce _No response_ ### Additional information if flag&flagCompressEnabled != 0 { dstBody, err := c.uncompress(body) // leak in uncompress if err != nil { return err } defer c.pool.Free(dstBody) body = dstBody if payloadSize > 0 { dstPayload, err := c.uncompress(payload) if err != nil { return err } defer c.pool.Free(dstPayload) // leak payload = dstPayload } }
Activity