summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2021-09-21 12:34:40 -0500
committerPatrick Griffis <pgriffis@igalia.com>2021-10-15 13:48:34 -0500
commit7d772fed11c2c171362a3b5e2fcfb6eddbca5d04 (patch)
tree0f6a9d97fd491eeb173ee519493b37e09c41db61
parent04b16535a902d6cd6f606e62b79bb175447cb03c (diff)
downloadlibgweather-7d772fed11c2c171362a3b5e2fcfb6eddbca5d04.tar.gz
tests: Fix double free
-rw-r--r--libgweather/tests/test_libgweather.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libgweather/tests/test_libgweather.c b/libgweather/tests/test_libgweather.c
index 9d6d6a7..018da20 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);