[libgweather/pgriffis/libsoup-ci: 68/70] tests: Fix double free
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/pgriffis/libsoup-ci: 68/70] tests: Fix double free
- Date: Fri, 15 Oct 2021 17:31:09 +0000 (UTC)
commit 36bf48bc67b1e377dd34da8bc591d6b9921ab1fe
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Sep 21 12:34:40 2021 -0500
tests: Fix double free
libgweather/tests/test_libgweather.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/libgweather/tests/test_libgweather.c b/libgweather/tests/test_libgweather.c
index 9d6d6a74..018da20c 100644
--- a/libgweather/tests/test_libgweather.c
+++ b/libgweather/tests/test_libgweather.c
@@ -443,8 +443,6 @@ test_metar_weather_stations (void)
g_assert_cmpint (soup_message_get_status (msg), <, 300);
g_assert_nonnull (body);
contents = g_bytes_unref_to_data (body, &bsize);
- contents = g_strndup (contents, bsize);
- g_bytes_unref (body);
#else
g_assert_cmpint (msg->status_code, >=, 200);
g_assert_cmpint (msg->status_code, <, 300);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]