[libgweather/pgriffis/libsoup-ci] tests: Fix double free
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/pgriffis/libsoup-ci] tests: Fix double free
- Date: Tue, 21 Sep 2021 17:34:49 +0000 (UTC)
commit 278588de865e2e6d4599b06de48a9a8f2e3ce267
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Sep 21 12:34:40 2021 -0500
tests: Fix double free
libgweather/test_libgweather.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c
index aa4e30c8..c9371a55 100644
--- a/libgweather/test_libgweather.c
+++ b/libgweather/test_libgweather.c
@@ -456,8 +456,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]