[libgweather/pgriffis/libsoup-ci: 3/4] tests: Fix double free




commit 4983afec31b6bd02ad4090fdd42707bbd58d27e6
Author: Patrick Griffis <pgriffis igalia com>
Date:   Tue Sep 21 12:34:40 2021 -0500

    tests: Fix double free

 libgweather/test_libgweather.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c
index aa4e30c8..c9371a55 100644
--- a/libgweather/test_libgweather.c
+++ b/libgweather/test_libgweather.c
@@ -456,8 +456,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]