use g_byte_array_unref function to free GByteArray