socket-service test: Don't leak writev vectors

Detected by AddressSanitizer.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2021-01-29 19:28:42 +00:00
parent 3970ddec06
commit 5b476d0d9c

View File

@ -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);