[libsoup] WebSockets: plug leak when payload exceds size limit
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] WebSockets: plug leak when payload exceds size limit
- Date: Fri, 30 Aug 2019 10:06:44 +0000 (UTC)
commit 2e94b0c01ff9f2f17714f5afc4ee2fa5eee9e350
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Aug 30 13:05:28 2019 +0300
WebSockets: plug leak when payload exceds size limit
libsoup/soup-websocket-connection.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
index 6afbbe67..cec4de37 100644
--- a/libsoup/soup-websocket-connection.c
+++ b/libsoup/soup-websocket-connection.c
@@ -505,6 +505,7 @@ send_message (SoupWebsocketConnection *self,
if (length > 125) {
g_warning ("WebSocket control message payload exceeds size limit");
protocol_error_and_close (self);
+ g_bytes_unref (filtered_bytes);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]