[libgweather/ebassi/libsoup3: 3/6] tests: Fix double free




commit 3514eeaa95255ea02146b3cd08c0e6c4f52e519e
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]