test,modem-helpers: remove unnecessary NULL check for g_free()

g_free() handles a NULL pointer properly, so there is no need to have a
NULL check before calling g_free().
This commit is contained in:
Ben Chan
2018-08-29 08:35:46 +02:00
committed by Aleksander Morgado
parent 8e98922880
commit 1b3b2e26a7
+1 -2
View File
@@ -3265,8 +3265,7 @@ test_cclk_response (void)
g_assert (mm_network_timezone_get_leap_seconds (tz) == MM_NETWORK_TIMEZONE_LEAP_SECONDS_UNKNOWN);
}
if (iso8601)
g_free (iso8601);
g_free (iso8601);
if (tz)
g_object_unref (tz);