From 5b476d0d9cadf44f4031c38a3165173b1f01ed28 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 29 Jan 2021 19:28:42 +0000 Subject: [PATCH] socket-service test: Don't leak writev vectors Detected by AddressSanitizer. Signed-off-by: Simon McVittie --- gio/tests/socket-service.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/tests/socket-service.c b/gio/tests/socket-service.c index 8487a700e..c763fa6e6 100644 --- a/gio/tests/socket-service.c +++ b/gio/tests/socket-service.c @@ -342,6 +342,7 @@ writtenv_read_write_async_cb (GOutputStream *ostream, conn = data->conn; g_free (data->data); + g_free (data->vectors); g_free (data); res = g_output_stream_writev_all_finish (ostream, result, &bytes_written, &error);