/* Returns: the element data if @free_segment is FALSE, otherwise NULL. The element data should be freed using g_free().  */
guint8* g_byte_array_free(GByteArray *array, gboolean free_segment)
/* Returns: the element data if @free_segment is FALSE, otherwise NULL. The element data should be freed using g_free().  */
guint8* g_byte_array_free(GByteArray *array, gboolean free_segment)
{
  return (guint8 *)g_array_free ((GArray *)array, free_segment);
}