rng-random: NULL check not needed before g_free()