allocating memory using g_bytes_new_take leads to an error when trying to free memory using g_bytes_unref
g_bytes_new_take
g_bytes_unref