summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2021-09-21 12:34:40 -0500
committerEmmanuele Bassi <ebassi@gnome.org>2021-11-10 17:02:11 +0000
commit6b48c8e8ecb91ef34a922e40b06fb4d56b39ae76 (patch)
treea4f07410eb342552cbe6a5ed3e95576370f5c99d
parent1426e79489434f212caa3463ff59e356f4e11b3a (diff)
downloadlibgweather-6b48c8e8ecb91ef34a922e40b06fb4d56b39ae76.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 0ab4dd5..f2a7b3d 100644
--- a/libgweather/tests/test_libgweather.c
+++ b/libgweather/tests/test_libgweather.c
@@ -431,8 +431,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);