| author | |
| committer | |
| log | 42eb1329b1b9f41fe64e96c9c15afb486d0a1666 |
| tree | e8b313c773120be5489206f1fa69332383adc4cb |
| parent | d4df65e35504bc4a2fa500e03fbbaf95910035c8 |
Just a typo: I wasn't actually using the duped message, so the message I
sent could be freed in this interval.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/Build/WebServer.zig+1-1| ... | ... | @@ -323,7 +323,7 @@ fn serveWebSocket(ws: *WebServer, sock: *http.Server.WebSocket) !noreturn { |
| 323 | 323 | // Temporarily unlock, then re-lock after the message is sent. |
| 324 | 324 | ws.time_report_mutex.unlock(); |
| 325 | 325 | defer ws.time_report_mutex.lock(); |
| 326 | try sock.writeMessage(msg, .binary); | |
| 326 | try sock.writeMessage(owned_msg, .binary); | |
| 327 | 327 | } |
| 328 | 328 | } |
| 329 | 329 |