Use [glib.global.strfreev] to free it.
KeyFile.getGroups
string[] getGroups()Returns all groups in the key file loaded with key_file. The array of returned groups will be null-terminated, so length may optionally be null.
Returns
a newly-allocated null-terminated array of strings.