diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2021-09-21 12:34:40 -0500 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-11-10 17:02:11 +0000 |
commit | 6b48c8e8ecb91ef34a922e40b06fb4d56b39ae76 (patch) | |
tree | a4f07410eb342552cbe6a5ed3e95576370f5c99d | |
parent | 1426e79489434f212caa3463ff59e356f4e11b3a (diff) | |
download | libgweather-6b48c8e8ecb91ef34a922e40b06fb4d56b39ae76.tar.gz |
tests: Fix double free
-rw-r--r-- | libgweather/tests/test_libgweather.c | 2 |
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); |