[libgweather/ebassi/libsoup3: 18/21] tests: Fix double free




commit 6b48c8e8ecb91ef34a922e40b06fb4d56b39ae76
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 0ab4dd51..f2a7b3d2 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]