fix libhal_free_string_array segfault