[glib/wip/test-leaks: 1/2] socket-service test: Don't leak writev vectors
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/test-leaks: 1/2] socket-service test: Don't leak writev vectors
- Date: Fri, 29 Jan 2021 20:26:53 +0000 (UTC)
commit 5b476d0d9cadf44f4031c38a3165173b1f01ed28
Author: Simon McVittie <smcv collabora com>
Date: Fri Jan 29 19:28:42 2021 +0000
socket-service test: Don't leak writev vectors
Detected by AddressSanitizer.
Signed-off-by: Simon McVittie <smcv collabora com>
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]