Commit 1f25cde3b228bffe11acad3809b7d2d9dcd380d3

Thomas de Grivel 2024-09-13T12:41:37

fix double free

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/http/http_request.c b/http/http_request.c
index c8d7dfb..2ea2e03 100644
--- a/http/http_request.c
+++ b/http/http_request.c
@@ -186,7 +186,6 @@ sw http_request_buf_write (s_http_request *req, s_buf *buf)
   if ((r = buf_write_str(buf, method)) < 0)
     return r;
   result += r;
-  str_clean(&str);
   if ((r = buf_write_1(buf, " ")) <= 0)
     return r;
   result += r;